Bug 2105 - could not create widget: java.lang.NullPointerException
Summary: could not create widget: java.lang.NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 1839 2104
  Show dependency treegraph
 
Reported: 2006-01-03 18:39 IST by Andrew Cagney
Modified: 2006-01-04 20:09 IST (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 Andrew Cagney 2006-01-03 18:39:59 IST
Running standalone:

cagney@tomago$ /notnfs/cagney/native/frysk-gui/frysk/gui/FryskGui
could not create widget: java.lang.NullPointerException
Exception in thread "main" java.lang.NullPointerException
   at frysk.gui.monitor.MainWindow.<init> (MainWindow.java:57)
   at frysk.gui.monitor.WindowManager.initWindows (WindowManager.java:75)
   at frysk.gui.FryskGui.<init> (FryskGui.java:118)
   at frysk.gui.FryskGui.mainGui (FryskGui.java:148)
   at frysk.gui.FryskGui.main (FryskGui.java:233)

under gdb

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208723792 (LWP 18942)]
0x0782114f in org.gnu.gtk.Widget.removePackageName(java.lang.Class) (
    klass=@79af9c0) at src/java/org/gnu/gtk/Widget.java:1249
1249            int length = klass.getPackage().getName().length();

java.lang.Class.getPackage is returning <<NULL>> which, as far as I know, can't
happen.
Comment 1 Andrew Cagney 2006-01-03 21:09:44 IST
2006-01-03  Andrew Cagney  <cagney@redhat.com>

        * packagename/O.java: New file.  From Tom Tromey.
        * Makefile.am (packagename/a.out): New target.

Comment 2 Andrew Cagney 2006-01-04 20:09:50 IST
2006-01-04  Andrew Cagney  <cagney@redhat.com>

        * packagename/C.java: New file; from Tom Tromey.
        * Makefile.am (packagename/C.out): New target.
        (packagename/O.out): Rename packagename/a.out.

this test illustrates the regression; passing on 4.0.x but failing with a recent
4.1.x snapshot.