Index: /trunk/.classpath
===================================================================
--- /trunk/.classpath (revision 2925)
+++ /trunk/.classpath (revision 2926)
@@ -4,5 +4,5 @@
-
+
Index: /trunk/src/org/openstreetmap/josm/data/Version.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/Version.java (revision 2925)
+++ /trunk/src/org/openstreetmap/josm/data/Version.java (revision 2926)
@@ -34,4 +34,5 @@
*/
static public String loadResourceFile(URL resource) {
+ if (resource == null) return null;
BufferedReader in;
String s = null;
@@ -74,6 +75,10 @@
Pattern p = Pattern.compile("^([^:]+):(.*)$");
for (String line: content.split("\n")) {
- if (line == null || line.trim().equals("")) continue;
- if (line.matches("^\\s*#.*$")) continue;
+ if (line == null || line.trim().equals("")) {
+ continue;
+ }
+ if (line.matches("^\\s*#.*$")) {
+ continue;
+ }
Matcher m = p.matcher(line);
if (m.matches()) {