[izpack-devel] Problem with InputPanel

Julien Ponge julien.ponge at gmail.com
Wed Dec 19 22:50:28 CET 2007


Hi... Julien ;-)

> 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.

I'll let others answer on this panel as I am not the specialist on it.

>
> 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)
>              installedFilesList.add(path);
>              if (uninstall) uninstallableFilesList.add(path);
>
> Should be:
>
>          if(path != null) {
>              installedFilesList.add(path);
>              if (uninstall) uninstallableFilesList.add(path);
>          }
>

Ok I'm fixing this one now.

Cheers


More information about the izpack-devel mailing list