(hls backend with ram) correct nullPointerException Bug