Fix: MySQL nullpointer exception