diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-01-15 10:16:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-01-15 20:24:48 +0000 |
commit | 20156f4ab2962e25f71903c0b0903c3a954eb320 (patch) | |
tree | fca89768afd40f4d83f51af68343e47b907e8935 /wizards | |
parent | 506d18aa3bfc966b79f447dfc850c547568be7cd (diff) |
coverity#1326423 Dereference null return value
Change-Id: Ic9f10dbae01e432bd1029c091b20187b8cf939ec
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/db/TableDescriptor.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/db/TableDescriptor.java b/wizards/com/sun/star/wizards/db/TableDescriptor.java index c2ce80cf3d07..e83ea5b4632e 100644 --- a/wizards/com/sun/star/wizards/db/TableDescriptor.java +++ b/wizards/com/sun/star/wizards/db/TableDescriptor.java @@ -235,12 +235,12 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen for (int i = 0; i < columncontainer.size(); i++) { XPropertySet xColPropertySet = getByIndex(i); - if (!isColunnNameDuplicate(xNameAccessColumns, xColPropertySet)) + if (xColPropertySet != null && !isColunnNameDuplicate(xNameAccessColumns, xColPropertySet)) { xAppendColumns.appendByDescriptor(xColPropertySet); //xColPropertySet.setPropertyValue("Type", 32423) - } - else - { + } + else + { breturn = false; } } |