]> git.tdb.fi Git - r2c2.git/commit
Check that occupied_track is not null before accessing it
authorMikko Rasa <tdb@tdb.fi>
Sun, 30 Mar 2014 16:36:47 +0000 (19:36 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 30 Mar 2014 16:36:47 +0000 (19:36 +0300)
commit3d5779e12351547dded382f2d05d3f3f037dbcfd
tree860c79c3eb0099d7212a43eccd3e23d6987f059d
parent4232c65cb556d278dee218866de77402ff888f1e
Check that occupied_track is not null before accessing it

This could only happen if an exception is thrown from TrainRoutingState
constructor, but the resulting segfault can act as a red herring and
distract from the actual cause.
source/libr2c2/trainrouteplanner.cpp