Skip to content
Permalink
Browse files

fix: car lengths in web manifest are not displayed as null

This fix works by taking an node and getting it's value as a String regardless if the node is a textual node.
  • Loading branch information...
rhwood committed Jun 9, 2019
1 parent 311fa10 commit ca5616a92a83b14b06428b745cb16895fa244ab3
Showing with 1 addition and 1 deletion.
  1. +1 −1 java/src/jmri/web/servlet/operations/HtmlManifest.java
@@ -435,7 +435,7 @@ protected String getTextAttribute(String attribute, JsonNode rollingStock) {
return this.getFormattedAttribute(JSON.FINAL_DESTINATION, this.getFormattedLocation(rollingStock
.path(JSON.FINAL_DESTINATION), ShowLocation.track, "FinalDestination")); // NOI18N
}
return this.getFormattedAttribute(attribute, rollingStock.path(attribute).textValue());
return this.getFormattedAttribute(attribute, rollingStock.path(attribute).asText());
}

protected String getFormattedAttribute(String attribute, String value) {

0 comments on commit ca5616a

Please sign in to comment.
You can’t perform that action at this time.