Project: Birt
Bug 252148 Delete script and save the report during debugging will lead exception
Reported: 2008-10-27 05:15:12 | Status: closed fixed

Description: Delete script and save the report during debugging will lead exception Build number: 2.3.2.v20081027-0630 Steps to reproduce: 1, Debugging a report 2, During the debugging, remove the script and save the report Expected result: No exception occurs and told user to continue or determine. Actual result: After saving the report, exception thrown out Error log: null Error Mon Oct 27 17:10:37 GMT+08:00 2008 An internal error occurred during: "Building workspace". java.lang.Error: Don't set the file name at org.eclipse.birt.report.debug.internal.script.model.ScriptLineBreakpoint.getFileName(ScriptLineBreakpoint.java:162) at org.eclipse.birt.report.debug.internal.script.model.ScriptDebugTarget.supportsBreakpoint(ScriptDebugTarget.java:307) at org.eclipse.birt.report.debug.internal.script.model.ScriptDebugTarget.breakpointRemoved(ScriptDebugTarget.java:549) at org.eclipse.debug.internal.core.BreakpointManager$BreakpointNotifier.run(BreakpointManager.java:879) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.debug.internal.core.BreakpointManager$BreakpointNotifier.notify(BreakpointManager.java:902) at org.eclipse.debug.internal.core.BreakpointManager.fireUpdate(BreakpointManager.java:816) at org.eclipse.debug.internal.core.BreakpointManager.removeBreakpoints(BreakpointManager.java:427) at org.eclipse.debug.internal.core.BreakpointManager$BreakpointManagerVisitor.update(BreakpointManager.java:669) at org.eclipse.debug.internal.core.BreakpointManager.resourceChanged(BreakpointManager.java:611) at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148) at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:297) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Files changed in fix:
UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/internal/script/model/ScriptDebugTarget.java UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/internal/script/model/ScriptLineBreakpoint.java