diff options
Diffstat (limited to 'ajbrowser')
-rw-r--r-- | ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java b/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java index 95d5c9135..720ed65fd 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java +++ b/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java @@ -72,9 +72,13 @@ public class BasicEditor implements EditorAdapter { } public void showSourceLine(ISourceLocation sourceLocation, boolean highlight) { - showSourceLine(sourceLocation.getSourceFile().getAbsolutePath(), sourceLocation.getLine(), highlight); - } - + try { + showSourceLine(sourceLocation.getSourceFile().getAbsolutePath(), sourceLocation.getLine(), highlight); + } catch (NullPointerException npe) { + Ajde.getDefault().getIdeUIAdapter().displayStatusInformation(" no corresponding source line to seek to"); + } + } + public void showSourceLine(int lineNumber, boolean highlight) { showSourceLine(filePath, lineNumber, highlight); } |