fix a niace nullPointer

Signed-off-by: fabio <fbi.gritti@gmail.com>