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.
Created a py project in dev build 55 and tried to debug a file and set the breakpoint at the start of the file and when debugged it threw the following exception : java.lang.NullPointerException at org.netbeans.modules.python.debugger.Utils.markCurrent(Utils.java:56) at org.netbeans.modules.python.debugger.PythonDebugger.handleDebuggerEvent(PythonDebugger.java:457) at org.netbeans.modules.python.debugger.actions.JpyDbgView.newDebuggingEvent(JpyDbgView.java:114) at org.netbeans.modules.python.debugger.gui.PythonDebugContainer$_DEBUGEVENT_MANAGER_.populateToPlugin(PythonDebugContaine r.java:661) at org.netbeans.modules.python.debugger.gui.PythonDebugContainer$_DEBUGEVENT_MANAGER_.populateLocalSource(PythonDebugConta iner.java:676) at org.netbeans.modules.python.debugger.gui.PythonDebugContainer$_DEBUGEVENT_MANAGER_.startupSourceInit(PythonDebugContain er.java:707) at org.netbeans.modules.python.debugger.gui.PythonDebugContainer$_DEBUGEVENT_MANAGER_.startDebugger(PythonDebugContainer.j ava:730) at org.netbeans.modules.python.debugger.gui.PythonDebugContainer$_DEBUGEVENT_MANAGER_.newDebugEvent(PythonDebugContainer.j ava:1039) at org.netbeans.modules.python.debugger.backend.PythonDebugClient.populateEvent(PythonDebugClient.java:169) at org.netbeans.modules.python.debugger.backend.PythonDebugClient.access$300(PythonDebugClient.java:21) [catch] at org.netbeans.modules.python.debugger.backend.PythonDebugClient$_TCP_TASK_.run(PythonDebugClient.java:142)
Created attachment 71722 [details] log file
Created attachment 71723 [details] screen shot
The raised nullpointer is due to impossibility of computing the source line so I am not able to reproduce with a sample of my own , so the problem may be related to the source you use , is it possible to attach the sample you use to the ticket ? This would help me to understand why we got an invalid source line instead of just fixing by ignoring null lines thanks Jean-Yves
Created attachment 71823 [details] py project
Thanks for providing the sample using the 081014 nightly checkout on my linux box I have not been able to reproduce the symptom. Looking at the exception location , the reason of the exception is netbeans returning back a null line object to the debugger when the startup line of the script is requested to show in the editor. My advice here is to try with a more recent netbeans build. I have attached the screen showing the NewPythonProject2.py in debug state on the first line of the script
Created attachment 71846 [details] show source working
verified in build 320 (20081212)