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 28157 - Generic VCS NullPointerException
Summary: Generic VCS NullPointerException
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-21 22:44 UTC by bljohnson
Modified: 2003-07-01 13:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bljohnson 2002-10-21 22:44:21 UTC
Here is the NPE stack trace - I'm having a hell of a time 
trying to get NetBeans integrated with PVCS.  I either get 
constant NP exceptions or the PCLI commands fail.

Here's that exception:

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:380)
        at 
org.netbeans.modules.vcscore.VcsFileSystem.getVariablesAsHa
shtable(VcsFileSystem.java:1979)
        at 
org.netbeans.modules.vcscore.VcsFileSystem.updateEnvironmen
tVars(VcsFileSystem.java:1819)
        at 
org.netbeans.modules.vcscore.VcsFileSystem.setVariables
(VcsFileSystem.java:1934)
        at 
org.netbeans.modules.vcs.advanced.CommandLineVcsFileSystem.
setVariables(CommandLineVcsFileSystem.java:803)
        at 
org.netbeans.modules.vcs.advanced.VcsCustomizer$36.run
(VcsCustomizer.java:1936)
        at org.openide.util.Task.run(Task.java:136)
[catch] at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:599)
Comment 1 Martin Entlicher 2002-10-22 09:39:30 UTC
You've set some variable with a null value somehow. And Hashtable can
not contain null values. I've no idea how did you do it though.
Comment 2 Martin Entlicher 2002-10-22 09:43:51 UTC
Fixed in the main trunk. To be more robust, I check for null values of
provided variables.

/cvs/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java,v 
<--  VcsFileSystem.java
new revision: 1.188; previous revision: 1.187
Comment 3 Jiri Kovalsky 2002-11-08 11:09:18 UTC
Could you please confirm that it's fixed ? Thanks !
Comment 4 Jiri Kovalsky 2002-11-13 15:30:19 UTC
Silence means it's okay ? Verified in development build #200211131011
of NetBeans 4.0 instead of reporter.
Comment 5 Jaroslav Tulach 2002-12-03 09:55:34 UTC
Hi. This issue is marked as 3.4.1_CANDIDATE. It means that it should be
integrated into release341 one branch. The plan at
http://www.netbeans.org/devhome/docs/releases/34/index.html expected beta1 to be
produced on Dec01. That did not happen due to a lot of outstanding not
integrated candidates like this one. 

Would it be possible to spend few minutes by backporting this fix? Thank you in
advance.
Comment 6 Martin Entlicher 2002-12-05 14:29:48 UTC
Merged into release341 branch.
/cvs/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java,v 
<--  VcsFileSystem.java
new revision: 1.178.6.3.4.1; previous revision: 1.178.6.3
Comment 7 Quality Engineering 2003-07-01 13:03:33 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.