Skip to content

Commit

Permalink
Fix null ref crash when TileRail is still in init phase
Browse files Browse the repository at this point in the history
  • Loading branch information
cam72cam committed Jan 6, 2019
1 parent 3bef704 commit eec8381
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ public double percentFloating() {

@Override
public double getTrackGauge() {
if (info == null) {
return 0;
}
return info.settings.gauge.value();
}
}

0 comments on commit eec8381

Please sign in to comment.