Fixed NPE from ParaPenguin/SporkPGM#29
Code format
Merge pull request #30 from TheMolkaPL/patch-1

Fixed NPE from ParaPenguin/SporkPGM#29