summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Ehrnhoefer2011-11-06 10:23:12 (EST)
committerSteffen Pingel2011-11-06 10:29:34 (EST)
commita3a8dc3672fe2d2dab2861863f41101de7b63dc1 (patch)
treef334e1ee6c39fcecff3924c291b82a79aed96897
parent14af4af7bf31a1920be61c7bd1e62b7cc5f8f75a (diff)
downloadorg.eclipse.mylyn.tasks-a3a8dc3672fe2d2dab2861863f41101de7b63dc1.zip
org.eclipse.mylyn.tasks-a3a8dc3672fe2d2dab2861863f41101de7b63dc1.tar.gz
org.eclipse.mylyn.tasks-a3a8dc3672fe2d2dab2861863f41101de7b63dc1.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();
}