scala-ide/scala-ide — pull request #171 by hubertp (2012-08-02 09:39:42+00:00)
Title: Guard against NPE when finding the depth of the element

I hit this annoying thing when using (Java) debugger on scala compiler. I was just clicking on the stacktrace and it wouldn't locate the appropriate line in the source code but rather throw NPE.

This looked like an easy and reasonable fix to me so here you go.