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 267863

Summary: NullPointerException at org.netbeans.modules.debugger.ui.WatchesReader.write
Product: debugger Reporter: Jenselme
Component: CodeAssignee: Martin Entlicher <mentlicher>
Status: VERIFIED FIXED    
Severity: normal CC: Jenselme
Priority: P1 Keywords: 82_HR_FIX
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226055
Attachments: stacktrace

Description Jenselme 2016-09-04 19:39:59 UTC
Build: NetBeans IDE Dev (Build 201609020002)
VM: OpenJDK 64-Bit Server VM, 25.102-b14, OpenJDK Runtime Environment, 1.8.0_102-b14
OS: Linux

User Comments:
Jenselme: This happens when I create a new watch in a running Cordova project.

Link: http://services.netbeans.org/synergy/client/app/#/case/3569/suite/1477




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.debugger.ui.WatchesReader.write(WatchesReader.java:136)
   at org.netbeans.api.debugger.Properties$PropertiesImpl.setObject(Properties.java:1193)
   at org.netbeans.api.debugger.Properties$DelegatingProperties.setObject(Properties.java:1650)
   at org.netbeans.modules.debugger.ui.WatchesReader.write(WatchesReader.java:133)
   at org.netbeans.api.debugger.Properties$PropertiesImpl.setObject(Properties.java:1193)
   at org.netbeans.api.debugger.Properties$DelegatingProperties.setObject(Properties.java:1650)
Comment 1 Jenselme 2016-09-04 19:40:01 UTC
Created attachment 161895 [details]
stacktrace
Comment 2 Martin Entlicher 2016-09-14 23:06:11 UTC
Fixed by changeset:   300733:492c61d202a4
http://hg.netbeans.org/core-main/rev/492c61d202a4

Please verify in trunk, might be considered for backport into 8.2, it breaks deserialization of watches.
Comment 3 Quality Engineering 2016-09-16 02:28:57 UTC
Integrated into 'main-silver', will be available in build *201609160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/492c61d202a4
User: mentlicher@netbeans.org
Log: #267863: Do not resurrect watch pins in removed files.
Comment 4 Jenselme 2016-09-16 17:20:32 UTC
I confirm that this is fixed. Thanks.
Comment 5 Jiri Kovalsky 2016-09-16 19:02:04 UTC
Excellent, thanks Julien. Integration approved. Martine please merge the fix to release82 branch. Thanks!
Comment 6 Martin Entlicher 2016-09-17 11:02:08 UTC
Thanks, integrated into release82 branch:
http://hg.netbeans.org/releases/rev/3bd65003aa27