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 30863 - NullPointer from getCompilerType
Summary: NullPointer from getCompilerType
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2003-02-07 22:05 UTC by schwarcz
Modified: 2008-12-22 19:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log (67.38 KB, text/plain)
2003-02-07 22:06 UTC, schwarcz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schwarcz 2003-02-07 22:05:17 UTC
While unmounting a series of jars that NB had mounted 
multple times (reported as a separate bug) I got this 
exception:

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
        at 
org.openide.loaders.CompilerSupport.getCompilerType
(CompilerSupport.java:115)
        at 
org.netbeans.modules.java.JavaDataObject.getCompilerType
(JavaDataObject.java:1107)
        at org.netbeans.modules.java.JavaDataObject.files
(JavaDataObject.java:208)
Comment 1 schwarcz 2003-02-07 22:06:21 UTC
Created attachment 8850 [details]
ide.log
Comment 2 Jesse Glick 2003-02-28 19:35:16 UTC
Looks like some datasystems threading bug - either
MultiDataObject.getPrimaryEntry() or MDO.Entry.getFile() is returning
null. Normally that is impossible, but if you are in the middle of
some datasystems invalidation code, then maybe...

IMHO it is a serious problem that datasystems calls DataObject.files()
but JavaDataObject is overriding that to do quite inappropriate and
complex things. No documented contract as to how files() can be
implemented, of course. Probably no solution possible with the current
code base, suggest WONTFIX status unless it is known to be
reproducible and/or common.
Comment 3 Marian Mirilovic 2003-03-13 13:44:09 UTC
Changed owner David S. -> David K.
Comment 4 David Konecny 2003-03-19 17:05:32 UTC
Agree with Jesse.
Comment 5 Marian Mirilovic 2003-07-28 16:06:14 UTC
Agreed - verifying, closing.