eclipse/eclipse-fix-jsoup-crash.patch
2013-04-22 14:45:16 +02:00

19 lines
1.0 KiB
Diff

--- eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java 2013-04-19 13:08:29.315958306 +0200
+++ eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java.bak 2013-04-19 13:06:32.843978924 +0200
@@ -597,9 +597,13 @@ public void create (Composite parent, int style) {
*/
long /*int*/ session = WebKitGTK.webkit_get_default_session ();
long /*int*/ originalAuth = WebKitGTK.soup_session_get_feature (session, WebKitGTK.webkit_soup_auth_dialog_get_type ());
- WebKitGTK.soup_session_feature_detach (originalAuth, session);
+ if (originalAuth != 0) {
+ WebKitGTK.soup_session_feature_detach (originalAuth, session);
+ }
OS.g_signal_connect (session, WebKitGTK.authenticate, Proc5.getAddress (), webView);
- WebKitGTK.soup_session_feature_attach (originalAuth, session);
+ if (originalAuth != 0) {
+ WebKitGTK.soup_session_feature_attach (originalAuth, session);
+ }
/*
* Check for proxy values set as documented java properties and update the