[Bug 61604] IllegalStateException in SmapStratum on empty JSP

2017-10-10 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61604 Mark Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 61604] IllegalStateException in SmapStratum on empty JSP

2017-10-10 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61604 --- Comment #3 from Mark Thomas --- Going back to the SMAP spec, it is legal for there to be zero LineInfo lines so the lineData.size() == 0 test can be removed. I'll double-check the rest of the spec while I am at it. -- You are receiving t

[Bug 61604] IllegalStateException in SmapStratum on empty JSP

2017-10-10 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61604 --- Comment #2 from Remy Maucherat --- So this was done during the (major) 49176 enhancement in r1800201. Switching back to returning null will likely cause some NPEs in some cases, but this used to be the case before from what I can see. --

[Bug 61604] IllegalStateException in SmapStratum on empty JSP

2017-10-10 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61604 --- Comment #1 from stef.an --- Sorry, of course lineData is not null at that point, it is the empty array causing the exception being thrown. // print our StratumSection, FileSection, and LineSections if (fileNameList.size() == 0 || lineData.