[izpack-devel] Problem with InputPanel

Julien ciryus432 at gmail.com
Wed Dec 19 22:44:15 CET 2007


First, I'm using the svn version of Izpack. Updated today.

I've noticed a strange behavior of the InputPanel. I have a 'search' 
field type. I've noticed that if I click the 'browse' button to find my 
path, the variable will be set. However, if I type directly the path in 
the field, the variable doesn't get set. I noticed this behavior under 
Linux (Ubuntu 7.10 to be precise), with Java 6. Also under CentOS 5, 
also using Java 6.

Another bug I encountered is that when I get to the finish panel, when 
the uninstaller should be written, I get the following exception:

> java.lang.NullPointerException
>         at java.io.Writer.write(Writer.java:140)
>         at com.izforge.izpack.installer.InstallerFrame.writeUninstallData(InstallerFrame.java:1020)
>         at com.izforge.izpack.installer.InstallerFrame.exit(InstallerFrame.java:1268)
>         at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.actionPerformed(InstallerFrame.java:1628)
>         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
>         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
>         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
>         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
 >         ...

I've linked it back to UninstallData.java, around line 90:

         if(path != null)
             if (uninstall) uninstallableFilesList.add(path);

Should be:

         if(path != null) {
             if (uninstall) uninstallableFilesList.add(path);

For some reason, some null paths get passed in in my installation.

More information about the izpack-devel mailing list