Ian F. Darwin - 2006-08-08

Logged In: YES
user_id=15514

We are seeing this error as well when running the Ant
Launcher. Note that the user documentation
(http://solex.sourceforge.net/) does not document the Ant
launcher as usable; it is only used in the project's
internal testing.

In looking into the code, which I presume you have done by
now, you see that the famous line 242 has the call

SolexPlugin.getDefault().getPreferenceStore();

and in hitting F3 on getDefault() you find out that
SolexPlugin has an incorrect assumption in its singleton
implemntation, that it will only be called from within
Eclipse; when it is called from Ant, the instance has not
been created, and the static method returns null, resulting
in the NPE above.

It is not clear the best way to fix this, since the plugin
presumably has some requirement for the initialization
parameters that Eclipse gives it, since the Runner is trying
to get the Plugin's preferences store...