summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-22 09:14:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-22 16:45:06 +0100
commitae056434494dc35954cf39c37b730cb82b667412 (patch)
tree5818de12fbeddc2010642bdc8e59cb8d642df702 /wizards
parentf86c07afd733234a2653325df0f165c0dfeaf716 (diff)
coverity#1326173 Explicit null dereferenced
Change-Id: Icee3d9af9b9811e99afca49e2fe1b46fb4a85bca
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/form/FieldLinker.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/form/FieldLinker.java b/wizards/com/sun/star/wizards/form/FieldLinker.java
index e80bb9de0441..2a0c3d3d313d 100644
--- a/wizards/com/sun/star/wizards/form/FieldLinker.java
+++ b/wizards/com/sun/star/wizards/form/FieldLinker.java
@@ -282,8 +282,10 @@ public class FieldLinker extends DBLimitedFieldSelection
public void itemStateChanged(ItemEvent EventObject)
{
- int ikey = CurUnoDialog.getControlKey(EventObject.Source, CurUnoDialog.ControlList);
- enableNextControlRow(ikey);
+ if (EventObject != null) {
+ int ikey = CurUnoDialog.getControlKey(EventObject.Source, CurUnoDialog.ControlList);
+ enableNextControlRow(ikey);
+ }
}
public void disposing(com.sun.star.lang.EventObject eventObject)