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 256590 - NullPointerException at org.netbeans.modules.viewmodel.TreeModelRoot.destroy
Summary: NullPointerException at org.netbeans.modules.viewmodel.TreeModelRoot.destroy
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-13 15:18 UTC by Alexander Pepin
Modified: 2016-02-08 12:11 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 221149


Attachments
stacktrace (4.05 KB, text/plain)
2015-11-13 15:18 UTC, Alexander Pepin
Details
stacktrace (4.05 KB, text/plain)
2015-12-15 15:37 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2015-11-13 15:18:02 UTC
Build: IDE for C, C++, and Fortran (Studio 12.5 Beta [2015/11/13 244c37b31a57])
VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01
OS: Linux

User Comments:
apepin: -set breakpoint in java code on a native method invocation 
- start debugging  
- when the first breakpoint is reached do step into the native method
- do step over in the native code then press continue
Result: NPE occurs together with  dbx worning windows.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.viewmodel.TreeModelRoot.destroy(TreeModelRoot.java:290)
   at org.netbeans.modules.viewmodel.OutlineTable.setModel(OutlineTable.java:367)
   at org.netbeans.modules.viewmodel.OutlineTable.setModel(OutlineTable.java:345)
   at org.netbeans.modules.viewmodel.OutlineTable.removeNotify(OutlineTable.java:1083)
   at java.awt.Container.removeNotify(Container.java:2800)
   at javax.swing.JComponent.removeNotify(JComponent.java:4759)
Comment 1 Alexander Pepin 2015-11-13 15:18:03 UTC
Created attachment 157329 [details]
stacktrace
Comment 2 Alexander Pepin 2015-11-13 15:23:09 UTC
see also:
bug #256544
bug #256562
Comment 3 Alexander Pepin 2015-12-15 15:37:59 UTC
Created attachment 157796 [details]
stacktrace

See bugs #256590
Comment 4 Martin Entlicher 2015-12-17 16:57:05 UTC
Fixed by changeset:   294591:7763578ef918
http://hg.netbeans.org/core-main/rev/7763578ef918
Please verify.
Comment 5 Quality Engineering 2015-12-19 02:49:08 UTC
Integrated into 'main-silver', will be available in build *201512190002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7763578ef918
User: mentlicher@netbeans.org
Log: #256590: Do not call foreign code under synchronized block and assure that multiple destroy() invocations are handled correctly.
Comment 6 Martin Entlicher 2016-01-14 13:24:28 UTC
Can you please verify the fix in trunk so that we can integrate it into 81 patch?
Thanks.
Comment 7 henk89 2016-01-20 14:39:42 UTC
We've just built Studio based on the NB trunk. We are going to test it ASAP.
Comment 8 Alexander Pepin 2016-01-26 12:25:42 UTC
Verified in Studio IDE build with updated org-netbeans-spi-viewmodel.jar
provided by Martin.
Comment 9 Martin Entlicher 2016-01-27 10:25:04 UTC
Transplaned into release81 by changeset:   305727:869d9ae89838
http://hg.netbeans.org/releases/rev/869d9ae89838
Comment 10 Alexander Pepin 2016-02-08 12:11:51 UTC
Verified in build 20160130.