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 252373 - NullPointerException
Summary: NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
: 255195 256441 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-13 08:31 UTC by vamiot
Modified: 2016-10-14 15:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 217264


Attachments
stacktrace (31 bytes, text/plain)
2015-05-13 08:31 UTC, vamiot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vamiot 2015-05-13 08:31:55 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: Oracle Solaris Studio 12.4 (2014/10/03 bc3251f82efb)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: SunOS

User Comments:
vamiot: asynchronous stray exception in the JAVA IDE




Stacktrace: 
java.lang.NullPointerException
Comment 1 vamiot 2015-05-13 08:31:57 UTC
Created attachment 153624 [details]
stacktrace
Comment 2 Alexander Simon 2015-05-20 09:23:23 UTC
broken code model cache
Comment 3 Vladimir Kvashin 2015-09-23 21:23:10 UTC
Isn't it the same problem with FileImpl hashCode? Unfortunately can't see message log from home :)
Comment 4 Vladimir Kvashin 2015-09-24 16:28:44 UTC
It can occur that some client holds file and asks it for hash code while the project already closed or even deleted. (I guess this might in particular happen when calling re-parse)

fixed:
http://hg.netbeans.org/cnd-main/rev/38783005e57e
Comment 5 Quality Engineering 2015-09-25 01:46:17 UTC
Integrated into 'main-silver', will be available in build *201509250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/38783005e57e
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #252373 - NullPointerException  + optimized FileImpl.isValid(), which is called very frequently
Comment 6 Vladimir Kvashin 2015-09-25 11:51:01 UTC
Additional fix by VVV:
http://hg.netbeans.org/cnd-main/rev/759b0e9b4db6
Comment 7 Alexander Simon 2015-11-09 10:02:13 UTC
*** Bug 256441 has been marked as a duplicate of this bug. ***
Comment 8 Vladimir Kvashin 2016-10-14 15:18:55 UTC
*** Bug 255195 has been marked as a duplicate of this bug. ***