fixed NPE
IDEX-1699 fix new line symbol