Fixed some possible NPE of server.
[KTK] 2 green cards.