Bug 3250 - Opening sourcewindow on process without debuginfo gives NPE on AMD64
Summary: Opening sourcewindow on process without debuginfo gives NPE on AMD64
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Mike Cvet
URL:
Keywords:
Depends on: 2936
Blocks: 1633
  Show dependency treegraph
 
Reported: 2006-09-23 00:52 UTC by Mike Cvet
Modified: 2006-09-23 01:23 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Cvet 2006-09-23 00:52:50 UTC
Exception in thread "main" java.lang.NullPointerException
   at frysk.gui.srcwin.SourceBuffer.getLineCount(FryskGui)
   at frysk.gui.srcwin.SourceBuffer.getLastLine(FryskGui)
   at frysk.gui.srcwin.SourceView.calculateMargin(FryskGui)
   at frysk.gui.srcwin.SourceView$8.preferenceChanged(FryskGui)
   at frysk.gui.common.prefs.BooleanPreference.addListener(FryskGui)
   at frysk.gui.srcwin.SourceView.initialize(FryskGui)
   at frysk.gui.srcwin.SourceView.<init>(FryskGui)
   at frysk.gui.srcwin.SourceView.<init>(FryskGui)
   at frysk.gui.srcwin.SourceWindow.populateStackBrowser(FryskGui)
   at frysk.gui.srcwin.SourceWindow.<init>(FryskGui)
   at frysk.gui.srcwin.SourceWindowFactory.finishSourceWin(FryskGui)
   at frysk.gui.srcwin.SourceWindowFactory$SourceWinBlocker$1.run(FryskGui)
   at org.gnu.glib.CustomEvents.runEvents(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.gtk_main(libgtkjava-2.8.so)
   at frysk.gui.Gui.gui(FryskGui)
   at frysk.gui.FryskGui.main(FryskGui)
Comment 1 Mike Cvet 2006-09-23 01:23:22 UTC
2006-09-22  Mike Cvet  <mcvet@redhat.com>

	* SourceBuffer.java (isLineExecutable): Check for a null StackFrame
scope. Addresses #3250.
	(getVariable): Ditto.
	(getLineCount): Ditto.
	(hasInlineCode): Ditto.
	(getInlineInstance): Ditto.
	(loadFile): Ditto.