Bug 4871 - Debug Window: right-clicking over out-of-scope variables causes NPE's
Summary: Debug Window: right-clicking over out-of-scope variables causes NPE's
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:
Blocks: 1633
  Show dependency treegraph
 
Reported: 2007-07-31 19:18 UTC by Rick Moseley
Modified: 2007-08-01 18:29 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 Rick Moseley 2007-07-31 19:18:38 UTC
Startup the debug window on a piece of source code with variables in it.  Hover
the mouse over a variable that is out-of-scope(cursor does not turn into a
"hand") and then right-click.  The following backtrace occurs:

java.lang.NullPointerException
   at frysk.gui.srcwin.SourceBuffer.getVariable(SourceBuffer.java:645)
   at frysk.gui.srcwin.SourceView.clickedOnTextArea(SourceView.java:876)
   at frysk.gui.srcwin.SourceView.access$1(SourceView.java:870)
   at
frysk.gui.srcwin.SourceView$SourceViewListener.mouseEvent(SourceView.java:1054)
   at org.gnu.gtk.Widget.fireMouseEvent(libgtkjava-2.8.so)
   at org.gnu.gtk.Widget.handleButtonPressed(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.gtk_main(libgtkjava-2.8.so)
   at org.gnu.gtk.Gtk.main(libgtkjava-2.8.so)
   at frysk.gui.Gui.gui(Gui.java:238)
   at frysk.gui.FryskGui.main(FryskGui.java:59)
Comment 1 Mike Cvet 2007-08-01 18:29:53 UTC
Log message:
	2007-08-01  Mike Cvet  <mcvet@redhat.com>
	
	* SourceBuffer.java (getVariable): Fixed assumption that variable 
returned
	from DebugInfo will never be null. Fixes #4871.