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.
java.lang.NullPointerException at org.netbeans.modules.ant.debugger.breakpoints.PersistenceManager.initBreakpoints(PersistenceManager.java:52) at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:783) at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:471) at org.netbeans.modules.debugger.jpda.ui.actions.ToggleBreakpointActionProvider.doAction(ToggleBreakpointActionProvider.java:131) at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:83) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
ANT debugger issue.
Well, that should not be possible... ANT debugger stores only breakpoints which are instance of AntBreakpoint and when it reads them it gets null. So maybe this is a bug in debuggercore in the process of read/write of properties.
JPDA debugger uses the same approach, thus it should be safe and should work. Looking into org.netbeans.api.debugger.Properties I see that there is no synchronization for I/O operations. Save is done lazily and is not synchronize with modifications, therefore i can save corrupted data. It seems that data corruption really occur from time to time, some bug reports about staled breakpoints that need cleanup of debugger settings suggest that it can be caused by this.
This might be a cause of issue #90419.
I've wrote a test for Properties, which is an important core functionality: /shared/data/ccvs/repository/debuggercore/api/src/org/netbeans/api/debugger/Properties.java,v <-- Properties.java new revision: 1.11; previous revision: 1.10 done RCS file: /shared/data/ccvs/repository/debuggercore/test/unit/src/org/netbeans/api/debugger/PropertiesTest.java,v done Checking in test/unit/src/org/netbeans/api/debugger/PropertiesTest.java; /shared/data/ccvs/repository/debuggercore/test/unit/src/org/netbeans/api/debugger/PropertiesTest.java,v <-- PropertiesTest.java initial revision: 1.1 However, this test does not discover a bug of this kind yet.
The synchronization is improved, the stored data should not be corrupted any more: /shared/data/ccvs/repository/debuggercore/api/src/org/netbeans/api/debugger/Properties.java,v <-- Properties.java new revision: 1.12; previous revision: 1.11
*** Issue 155058 has been marked as a duplicate of this issue. ***
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.