fix NPE when content is null