Skip to content
Commit 4c443768 authored by Julian Helfferich's avatar Julian Helfferich
Browse files

Check for NULL pointers

If the replay file can not be loaded, several pointers are set to NULL.
In this case, several member functions crash if called.

At the moment, these functions are not called since main checks if the
replay file has been loaded successfully. However, if the check is
omitted and the replay file cannot be loaded, the program crashes.

I have added checks for NULL pointers in the member functions of
KBlocksRepWin. Now, the program does not crash even if the check is
omitted.
parent 1b65c40f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment