[izpack-user] NullPointerException in EventFiller.loadCustomData (IzPack 5.0.0 beta7)

7 views
Skip to first unread message

Augusto Callejas

unread,
May 28, 2011, 2:38:46 PM5/28/11
to us...@izpack.codehaus.org
hi-

when i ran my installer after building it, i got this NPE.
looking at line 56, the source says:

===
                if (!OsConstraintHelper.oneMatchesCurrentSystem(listener.getOs()))
                {
                    continue;
                }
                switch (listener.getStage())
===

it occurs on the getStage() line, but listener is not null because it would have NPE four lines above.
it looks like its not setting the stage property correctly?

===
Exception in thread "AWT-EventQueue-0" com.izforge.izpack.api.exception.IzPackEx
ception: java.lang.NullPointerException
        at com.izforge.izpack.installer.bootstrap.InstallerGui$1.run(InstallerGui.java:57)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$000(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
        at com.izforge.izpack.core.container.filler.EventFiller.loadCustomData(EventFiller.java:56)
        at com.izforge.izpack.installer.container.impl.InstallerContainer.fillContainer(InstallerContainer.java:95)
        at com.izforge.izpack.core.container.AbstractContainer.initBindings(AbstractContainer.java:25)
        at com.izforge.izpack.installer.bootstrap.InstallerGui$1.run(InstallerGui.java:47)
        ... 14 more
===
Reply all
Reply to author
Forward
0 new messages