Changing the version to 1.2.4.qualifier.
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / preferences / PHPUnitPreferencePage.java
index b310b0c..8d8c1eb 100644 (file)
@@ -8,6 +8,7 @@
 
 package net.sourceforge.phpeclipse.phpunit.preferences;
 
+//import net.sourceforge.phpeclipse.externaltools.ExternalToolsPlugin;
 import net.sourceforge.phpeclipse.phpunit.PHPUnitPlugin;
 
 import org.eclipse.jface.preference.DirectoryFieldEditor;
@@ -34,7 +35,11 @@ public class PHPUnitPreferencePage extends FieldEditorPreferencePage implements
 
        public PHPUnitPreferencePage() {
                super(GRID);
-               setPreferenceStore(PHPUnitPlugin.getDefault().getPreferenceStore());
+               
+        if (PHPUnitPlugin.getDefault () != null) {
+            setPreferenceStore (PHPUnitPlugin.getDefault().getPreferenceStore());
+        }
+        
                setDescription("Please browse for the folder containing the PHPUnit files (among them: \"phpunit.php\" and \"socketTestResult.php\"). If you don't have it, please download the latest version from http://sourceforge.net/projects/phpunit/ first. ");
                //initializeDefaults();
        }