git://secure.phpeclipse.com
/
phpeclipse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix #1475484 - code formatter: bad result for array() embedding func calls
[phpeclipse.git]
/
net.sourceforge.phpeclipse.webbrowser
/
src
/
net
/
sourceforge
/
phpeclipse
/
webbrowser
/
internal
/
WebBrowser.java
diff --git
a/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowser.java
b/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowser.java
index
4c4f9ee
..
961fd5d
100644
(file)
--- a/
net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowser.java
+++ b/
net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowser.java
@@
-236,8
+236,10
@@
public class WebBrowser extends Composite {
// else its an editor window
if (shell != null)
shell.dispose();
- else
- editor.closeEditor();
+ else {
+ // #1365431 (toshihiro) editor.closeEditor(); causes NPE
+ if (editor != null) editor.closeEditor();
+ }
}
});