Changeset 4544
- Timestamp:
- Feb 13, 2014, 1:58:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/api/core/src/org/proteios/ConnectionPropertiesFile.java
r4542 r4544 30 30 import java.io.IOException; 31 31 import java.io.InputStream; 32 import java.net.URL; 32 33 import java.util.Properties; 33 34 … … 48 49 try 49 50 { 50 InputStream is = ConnectionPropertiesFile.class.getResource( 51 "/connection.properties").openStream(); 52 super.load(is); 51 // Will return null if file does not exist 52 URL url = ConnectionPropertiesFile.class.getResource( 53 "/connection.properties"); 54 if (url!=null) 55 { 56 InputStream is = url.openStream(); 57 super.load(is); 58 } 53 59 } 54 60 catch (IOException e)
Note: See TracChangeset
for help on using the changeset viewer.