X-Git-Url: http://secure.phpeclipse.com

diff --git a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPRuntime.java b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPRuntime.java
index dd1827c..f454e62 100644
--- a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPRuntime.java
+++ b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/PHPRuntime.java
@@ -103,17 +103,20 @@ public class PHPRuntime {
 	protected void loadRuntimeConfiguration() {
 		installedInterpreters = new ArrayList();
 		try {
-			XMLReader reader = SAXParserFactory.newInstance().newSAXParser().getXMLReader();
-			reader.setContentHandler(getRuntimeConfigurationContentHandler());
-			reader.parse(new InputSource(getRuntimeConfigurationReader()));
+			File file = getRuntimeConfigurationFile();
+			if (file.exists()) {
+		  	    XMLReader reader = SAXParserFactory.newInstance().newSAXParser().getXMLReader();
+			    reader.setContentHandler(getRuntimeConfigurationContentHandler());
+			    reader.parse(new InputSource(getRuntimeConfigurationReader(file)));
+			}
 		} catch(Exception e) {
-			PHPLaunchingPlugin.getDefault().log(e);
+			PHPLaunchingPlugin.log(e);
 		}
 	}
 
-	protected Reader getRuntimeConfigurationReader() {
+	protected Reader getRuntimeConfigurationReader(File file) {
 		try {
-			return new FileReader(getRuntimeConfigurationFile());
+			return new FileReader(file);
 		} catch(FileNotFoundException e) {}
 		return new StringReader("");
 	}