- Timestamp:
- 2013-12-26T10:09:54+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r6523 r6535 255 255 256 256 /** 257 * Prints a format ed error message if logging is on. Calls {@link MessageFormat#format}257 * Prints a formatted error message if logging is on. Calls {@link MessageFormat#format} 258 258 * function to format text. 259 * @param msg The format ed message to print.259 * @param msg The formatted message to print. 260 260 * @param objects The objects to insert into format string. 261 261 * @since 6248 … … 266 266 267 267 /** 268 * Prints a format ed warning message if logging is on. Calls {@link MessageFormat#format}268 * Prints a formatted warning message if logging is on. Calls {@link MessageFormat#format} 269 269 * function to format text. 270 * @param msg The format ed message to print.270 * @param msg The formatted message to print. 271 271 * @param objects The objects to insert into format string. 272 272 */ … … 276 276 277 277 /** 278 * Prints a format ed informational message if logging is on. Calls {@link MessageFormat#format}278 * Prints a formatted informational message if logging is on. Calls {@link MessageFormat#format} 279 279 * function to format text. 280 * @param msg The format ed message to print.280 * @param msg The formatted message to print. 281 281 * @param objects The objects to insert into format string. 282 282 */ … … 286 286 287 287 /** 288 * Prints a format ed debug message if logging is on. Calls {@link MessageFormat#format}288 * Prints a formatted debug message if logging is on. Calls {@link MessageFormat#format} 289 289 * function to format text. 290 * @param msg The format ed message to print.290 * @param msg The formatted message to print. 291 291 * @param objects The objects to insert into format string. 292 292 */ … … 302 302 public static void error(Throwable t) { 303 303 error(getErrorMessage(t)); 304 t.printStackTrace(); 304 305 } 305 306 … … 311 312 public static void warn(Throwable t) { 312 313 warn(getErrorMessage(t)); 314 t.printStackTrace(); 313 315 } 314 316 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r6534 r6535 79 79 } 80 80 81 @SuppressWarnings("UnusedDeclaration") 81 82 public static class Functions { 82 83 … … 270 271 */ 271 272 public String tag(String key) { 272 return env.osm .get(key);273 return env.osm == null ? null : env.osm.get(key); 273 274 } 274 275 … … 278 279 public String parent_tag(String key) { 279 280 if (env.parent == null) { 280 // we don't have a matched parent, so just search all referrers 281 for (OsmPrimitive parent : env.osm.getReferrers()) { 282 String value = parent.get(key); 283 if (value != null) { 284 return value; 281 if (env.osm != null) { 282 // we don't have a matched parent, so just search all referrers 283 for (OsmPrimitive parent : env.osm.getReferrers()) { 284 String value = parent.get(key); 285 if (value != null) { 286 return value; 287 } 285 288 } 286 289 }
Note:
See TracChangeset
for help on using the changeset viewer.