This commit is contained in:
wuweida 2022-06-10 14:56:04 +08:00
parent a9eaba2a2d
commit 058f14f734
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class EventController {
event.setVehicle(largeVehicle.getString("valueDescription"));
}
JSONObject trainingVehicle = attributes.getJSONObject("training_vehicle");
if (trainingVehicle == null) {
if (trainingVehicle != null) {
event.setVehicle(trainingVehicle.getString("valueDescription"));
}
JSONObject smallVehicle = attributes.getJSONObject("small_vehicle");