I am trying to view a saved results file in the Graph listener. graphMax is getting set to zero, which causes the exception. in updateGui(), model.getPercentPoint() gets called. If the first sample is a zero, this call returns a zero. Then in the ensuing if statement(line 164), the condition graphMax > (h * 1.2) is true, which means graphMax gets set to zero. I suggest ANDing the entire if condition with (h > 0), so that graphMax can't get set to zero.
*** This bug has been marked as a duplicate of 38234 ***
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1720