Don't bail on importing sim data when there is no <databranch> tag; we can
still have summary data
This commit is contained in:
parent
d67f7aa94d
commit
297ab11fe2
@ -92,12 +92,6 @@ class FlightDataHandler extends AbstractElementHandler {
|
||||
public void endHandler(String element, HashMap<String, String> attributes,
|
||||
String content, WarningSet warnings) {
|
||||
|
||||
// If no <databranch> tag in XML, then there is no sim data
|
||||
if (dataHandler == null) {
|
||||
data = null;
|
||||
return;
|
||||
}
|
||||
|
||||
if (branches.size() > 0) {
|
||||
data = new FlightData(branches.toArray(new FlightDataBranch[0]));
|
||||
} else {
|
||||
@ -158,4 +152,4 @@ class FlightDataHandler extends AbstractElementHandler {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user