#205475: NullPointerException at org.netbeans.modules.java.hints.jackpot.impl.Utilities$NbSPIImpl.createUniversalCPInfo
Jan Lahoda <[email protected]> Mon, 28 Nov 2011 15:33:56 +0100
| Newsgroups | gmane.comp.java.netbeans.reviewers |
|---|---|
| Message-ID | <[email protected]> |
http://netbeans.org/bugzilla/show_bug.cgi?id=205475
Description:
A NPE thrown after each reparse in some specific cases (while trying to
find a JavaPlatform with the highest specification version).
Fix:
JavaPlatform.getSpecification().getVersion() may validly return null, so
preventing dereference of this null, and also ignoring non-J2SE platforms.
Risk: minimal, even if the selected platform wouldn't have the highest
specification version, the impact should be very small.
Changeset:
http://hg.netbeans.org/main-golden/rev/45eeccaa7cde
Fix reviewed by tzezula.
Thanks,
Jan