diff options
Diffstat (limited to 'bean')
-rw-r--r-- | bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c b/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c index 36464626c1bc..069bb1ee050e 100644 --- a/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c +++ b/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c @@ -90,8 +90,9 @@ SAL_DLLPUBLIC_EXPORT jlong JNICALL Java_com_sun_star_comp_beans_LocalOfficeWindo if (!result) ThrowException(env, "java/lang/RuntimeException", "JAWT_GetAWT failed"); - /* Get the drawing surface */ - if ((ds = awt.GetDrawingSurface(env, obj_this)) == NULL) + /* Get the drawing surface */ + ds = awt.GetDrawingSurface(env, obj_this); + if (ds == NULL) return 0L; /* Lock the drawing surface */ |