Skip to content
Permalink
Browse files

fix: Web manifest was showing null car type

  • Loading branch information...
rhwood committed Jun 9, 2019
1 parent fac0bc2 commit 311fa10993b61745e0e13c058c21997b591ce705
@@ -16,7 +16,7 @@
static final String DIR = "dir"; // NOI18N
static final String COMMENT = "comment"; // NOI18N
static final String TRACK = "track"; // NOI18N
static final String TYPE = "type"; // NOI18N
public static final String TYPE = "type"; // NOI18N
static final String LENGTH = "length"; // NOI18N

static final String TRUE = "true"; // NOI18N
@@ -10,6 +10,7 @@
import java.util.Locale;
import java.util.Map.Entry;
import jmri.InstanceManager;
import jmri.jmrit.operations.rollingstock.Xml;
import jmri.jmrit.operations.routes.RouteLocation;
import jmri.jmrit.operations.setup.Setup;
import jmri.jmrit.operations.trains.JsonManifest;
@@ -307,6 +308,8 @@ protected String pickUpCar(JsonNode car, String[] format) {
builder.append(
this.getFormattedAttribute(attribute, this.getDropLocation(car.path(JsonOperations.LOCATION),
ShowLocation.both))).append(" "); // NOI18N
} else if (attribute.equals(Xml.TYPE)) {
builder.append(this.getTextAttribute(JsonOperations.CAR_TYPE, car)).append(" "); // NOI18N
} else {
builder.append(this.getTextAttribute(attribute, car)).append(" "); // NOI18N
}

0 comments on commit 311fa10

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