This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 46672 - NPE when testing CVS profile wizard
Summary: NPE when testing CVS profile wizard
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 4.x
Hardware: Sun SunOS
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2004-07-28 12:27 UTC by Jiri Skrivanek
Modified: 2006-03-24 10:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot (46.97 KB, image/png)
2004-07-28 12:27 UTC, Jiri Skrivanek
Details
Stack trace (603 bytes, text/plain)
2004-07-28 12:28 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2004-07-28 12:27:21 UTC
After fixing of issue 45915, it started to happen
that NullPointerException is thrown when the test
is configuring new working directory in CVS
profile wizard. The test does the following:

- open versioning manager
- click Add button
- type <PROJECT_HOME>/src in workdir text field
- select CVS profile
- type <PROJECT_HOME>/src in repository workdir

Sometime after selecting CVS profile (but before
we try to click the next button) the exception is
thrown (look at the screen shot and stack trace).
Comment 1 Jiri Skrivanek 2004-07-28 12:27:44 UTC
Created attachment 16510 [details]
Screen shot
Comment 2 Jiri Skrivanek 2004-07-28 12:28:10 UTC
Created attachment 16511 [details]
Stack trace
Comment 3 Martin Entlicher 2004-08-03 14:03:02 UTC
I was able to reproduce it by running just the CVS test. Starting to
work on it...
Comment 4 Martin Entlicher 2004-08-03 14:42:47 UTC
This problem is caused by the newly introduced
RapidDocumentChangeListener, which fires change events asynchronously.
Some kind of synchronization is necessary now.
Comment 5 Martin Entlicher 2004-08-03 16:05:56 UTC
Fixed in trunk. Synchronization added, the "testCVS" now pass
successfully (if I create <user dir>/SampleProject/src directory. This
is either done by some previous tests that I didn't execute, or it
should be created by the "testCVS()".

/cvs/vcsgeneric/src/org/netbeans/modules/vcs/advanced/VcsCustomizer.java,v
 <--  VcsCustomizer.java
new revision: 1.138; previous revision: 1.137
Comment 6 Jiri Skrivanek 2004-08-04 08:03:16 UTC
Fine, it passes. I will add testCVS to the commit validation suite.