The code indicates a possible NPE when showing job stream graph.
The code should be changed to avoid NPE