summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Ehrnhoefer2011-11-06 10:23:12 (EST)
committerSteffen Pingel2011-11-06 10:23:12 (EST)
commitf7f528a0a56bfbd4c6be8dc00382c33fce35178d (patch)
treef75c3dfc120da96fe7b1f620c321af1b28c6178e
parent477fe7c30360784371d164387b9445976a9c5c25 (diff)
downloadorg.eclipse.mylyn.tasks-f7f528a0a56bfbd4c6be8dc00382c33fce35178d.zip
org.eclipse.mylyn.tasks-f7f528a0a56bfbd4c6be8dc00382c33fce35178d.tar.gz
org.eclipse.mylyn.tasks-f7f528a0a56bfbd4c6be8dc00382c33fce35178d.tar.bz2
NEW - bug 362531: [patch] BrowserFormPage.getBrowser throws NPE if not
yet initialized https://bugs.eclipse.org/bugs/show_bug.cgi?id=362531
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/BrowserFormPage.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/BrowserFormPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/BrowserFormPage.java
index 8036717..b97f45e 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/BrowserFormPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/BrowserFormPage.java
@@ -87,6 +87,9 @@ public class BrowserFormPage extends TaskFormPage {
* Returns a reference to the browser control.
*/
public Browser getBrowser() {
+ if (browserViewer == null) {
+ return null;
+ }
return browserViewer.getBrowser();
}