Menu

#78 NullPointerException when importing conf

closed-fixed
None
1
2002-08-06
2002-06-08
No

Open jalopy preferences dialog in terminal:

java -jar jalopy-eclipse-bundle-0.2.1.jar

Click on Import button.
Click on Browse button.
NullPointerException is thrown.

If you set focus on input field either by clicking on it or by
opening the drop-down menu, and the click on Browse
button, everything's OK.

Stack trace is attached.

Jalopy 0.2.1 as Eclipse plugin, Linux 2.4.18, JDK 1.3.0 by
IBM

Discussion

  • Anonymous

    Anonymous - 2002-06-09

    Logged In: YES
    user_id=35978

    Update: I don't see if the file with the stack trace is attached, so
    here it is, pasted:
    ========================================
    davor@mandrake
    eclipse/plugins/de.hunsicker.jalopy.plugin.eclipse $ java -jar
    jalopy-eclipse-bundle-0.2.1.jar
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at java.io.File.<init>(File.java:186)
    at
    de.hunsicker.jalopy.ui.LocationDialog.setCurrentDirectory(LocationDialog.java:363)
    at
    de.hunsicker.jalopy.ui.LocationDialog.createFileChooser(LocationDialog.java:260)
    at
    de.hunsicker.jalopy.ui.LocationDialog$3.actionPerformed(LocationDialog.java:321)
    at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:384)
    at
    javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:256)
    at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
    at
    java.awt.Component.processMouseEvent(Component.java:3771)
    at java.awt.Component.processEvent(Component.java:3600)
    at java.awt.Container.processEvent(Container.java:1173)
    at
    java.awt.Component.dispatchEventImpl(Component.java:2649)
    at
    java.awt.Container.dispatchEventImpl(Container.java:1222)
    at java.awt.Component.dispatchEvent(Component.java:2553)
    at
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2465)
    at
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:2230)
    at
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:2139)
    at
    java.awt.Container.dispatchEventImpl(Container.java:1209)
    at java.awt.Window.dispatchEventImpl(Window.java:929)
    at java.awt.Component.dispatchEvent(Component.java:2553)
    at
    java.awt.EventQueue.dispatchEvent(EventQueue.java:401)
    at
    java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:109)
    at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:99)
    at java.awt.Dialog.show(Dialog.java:373)
    at java.awt.Component.show(Component.java:957)
    at java.awt.Component.setVisible(Component.java:914)
    at
    de.hunsicker.jalopy.ui.GeneralPanel$1.actionPerformed(GeneralPanel.java:201)
    at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:384)
    at
    javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:256)
    at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
    at
    java.awt.Component.processMouseEvent(Component.java:3771)
    at java.awt.Component.processEvent(Component.java:3600)
    at java.awt.Container.processEvent(Container.java:1173)
    at
    java.awt.Component.dispatchEventImpl(Component.java:2649)
    at
    java.awt.Container.dispatchEventImpl(Container.java:1222)
    at java.awt.Component.dispatchEvent(Component.java:2553)
    at
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2465)
    at
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:2230)
    at
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:2139)
    at
    java.awt.Container.dispatchEventImpl(Container.java:1209)
    at java.awt.Window.dispatchEventImpl(Window.java:929)
    at java.awt.Component.dispatchEvent(Component.java:2553)
    at
    java.awt.EventQueue.dispatchEvent(EventQueue.java:401)
    at
    java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:109)
    at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:99)
    at
    java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

    =======================================

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-06-09

    Logged In: YES
    user_id=44430

    So I see. Never happened for me under Sun JDK/W2K.
    Maybe a JDK issue. Will be gone with the next beta.

    Thanks for the report.
    M.H.

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-06-09
    • assigned_to: nobody --> marcohu
     
  • Anonymous

    Anonymous - 2002-06-10

    Logged In: YES
    user_id=35978

    I switched to JDK 1.4:

    davor@mandrake ~ $ java -version
    java version "1.4.0_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build
    1.4.0_01-b03)
    Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)

    Now works fine. Obviously a JDK issue. I'll try lated with
    1.3.1 by IBM

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-07-28
    • priority: 5 --> 1
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-08-06
    • status: open --> closed-fixed
     

Log in to post a comment.