diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-16 11:33:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-16 12:28:47 +0000 |
commit | 5b5b06628be63ff80cdbfc2cb41e68ba04bf5454 (patch) | |
tree | dc883059d657a27231e7dc06b076d3436a88a497 /wizards | |
parent | 83f3e8ec978d999e54b58b5596498860bda82c29 (diff) |
coverity#coverity#1326173 Explicit null dereferenced
Change-Id: Ifecc942dce4cafb1dcd7028fe742f450892564e4
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/form/FieldLinker.java | 8 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/ui/FilterComponent.java | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/form/FieldLinker.java b/wizards/com/sun/star/wizards/form/FieldLinker.java index 3384f0283912..c5222f26d9d6 100644 --- a/wizards/com/sun/star/wizards/form/FieldLinker.java +++ b/wizards/com/sun/star/wizards/form/FieldLinker.java @@ -284,13 +284,13 @@ public class FieldLinker extends DBLimitedFieldSelection private class ItemListenerImpl implements com.sun.star.awt.XItemListener { - public void itemStateChanged(ItemEvent EventObject) { - if (EventObject != null) { - int ikey = CurUnoDialog.getControlKey(EventObject.Source, CurUnoDialog.ControlList); - enableNextControlRow(ikey); + if (EventObject == null) { + return; } + int ikey = CurUnoDialog.getControlKey(EventObject.Source, CurUnoDialog.ControlList); + enableNextControlRow(ikey); } public void disposing(com.sun.star.lang.EventObject eventObject) diff --git a/wizards/com/sun/star/wizards/ui/FilterComponent.java b/wizards/com/sun/star/wizards/ui/FilterComponent.java index 27e7eff839f2..ad1eb18ca318 100644 --- a/wizards/com/sun/star/wizards/ui/FilterComponent.java +++ b/wizards/com/sun/star/wizards/ui/FilterComponent.java @@ -106,6 +106,10 @@ public class FilterComponent public void itemStateChanged(com.sun.star.awt.ItemEvent EventObject) { + if (EventObject == null) { + return; + } + int iKey = CurUnoDialog.getControlKey(EventObject.Source, CurUnoDialog.ControlList); String sControlName = PropertyNames.EMPTY_STRING; switch (iKey) |