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.
Summary: | java.lang.NullPointerException | ||
---|---|---|---|
Product: | obsolete | Reporter: | Jesse Glick <jglick> |
Component: | visualweb | Assignee: | Ch Nguyen <cnguyencasj> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=6023 | ||
Issue Type: | DEFECT | Exception Reporter: | 6023 |
Attachments: |
stacktrace
stacktrace |
Description
Jesse Glick
2008-02-16 00:45:01 UTC
Build: NetBeans IDE 6.0.1 (Build 200801291616) VM: Java HotSpot(TM) Client VM, 10.0-b19 OS: SunOS, 5.10, x86 User Comments: Created attachment 56783 [details]
stacktrace
I cannot reproduce this in a development main build. I cannot reproduce this in a development main build. I installed the visualweb post release from the update center and didn't see the NPE in the log. Please provide the reproducible steps. Thanks. Clearly there are not going to be any steps to reproduce, it is just an exception known to be thrown a lot. Since a NPE always indicates a bug in your code, figure out which vars might possibly be null and defend against that, or if you believe it is "impossible", put in assert statements to trace what went wrong. Build: NetBeans IDE 6.0.1 (Build 200801291616) VM: Java HotSpot(TM) Client VM, 1.5.0_10-b03 OS: Windows XP, 5.1, x86 User Comments: Created attachment 56959 [details]
stacktrace
I still can't reproduce this NPE. However, I fixed up the code anyway after analyzing where there is a need to check for null pointer. I also got some good feedback from Quy on the code change review. Here is the changeset info: changeset: 10657:c3c4c1c2c7b3 user: Chau Nguyen <cnguyencasj@netbeans.org> date: Wed Feb 20 22:29:22 2008 -0800 files: visualweb.samples.postrel/nbproject/project.xml visualweb.samples.postrel/src/org/netbeans/modules/visualweb/samples/postrel/PostReleaseModuleInstaller.java description: Fix bug 127528 - NPE (without reproducible steps) While fixing this bug I also discovered that there is another condition where the complib might not be re-registered in the IDE once removed from the Library Manager. For more info on that issue, you can follow this issue 127969. The fix is in contrib module and so cannot be part of 6.0.1 patch2 (only stable modules are part of sustaining branch). Thus removing release601_fixes_candidate2 keyword. |