Bug 2105

Summary: could not create widget: java.lang.NullPointerException
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 1839, 2104    

Description Andrew Cagney 2006-01-03 18:39:59 UTC
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
Comment 1 Andrew Cagney 2006-01-03 21:09:44 UTC
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 UTC
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.