fix npe in weapondata for mysql