diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-18 16:35:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-18 17:21:18 +0000 |
commit | 56d43328d7e15b73ea76c72ac4cab82940ce95fa (patch) | |
tree | a187c24aba54fec1aea8a78dfbe66c153fdcf3b5 /wizards | |
parent | 3c48764e4f8bf4752de15308a17d222165948099 (diff) |
coverity#1326433 Dereference null return value
Change-Id: I440512bc4eb7c930c8c4c69eb9f5a92d630a61b9
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/form/FormDocument.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/form/FormDocument.java b/wizards/com/sun/star/wizards/form/FormDocument.java index 72faa38c491c..af72449501b0 100644 --- a/wizards/com/sun/star/wizards/form/FormDocument.java +++ b/wizards/com/sun/star/wizards/form/FormDocument.java @@ -274,7 +274,7 @@ public class FormDocument extends TextDocument return curControlForm; } } - return null; + throw new IllegalArgumentException("Searching for control " + _sname + " failed"); } public boolean finalizeForms(DataEntrySetter _curDataEntrySetter, FieldLinker _curFieldLinker, FormConfiguration _curFormConfiguration) |