summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-18 16:26:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-02-18 17:21:18 +0000
commit089dae6676ef34378c3093a71db6e1dca6cffd80 (patch)
tree84dbc6efdf5e319cb7124f1fc422198ce7fcdbaf /wizards
parent6727fa583164e630aeb10f39ad1f5e9f69f9b6ae (diff)
coverity#1326445 Dereference null return value
Change-Id: Ic279b6e8c51cbb559943027f987162678a17b143
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/report/ReportTextDocument.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/report/ReportTextDocument.java b/wizards/com/sun/star/wizards/report/ReportTextDocument.java
index 4fe8991c6513..f607ede1a41b 100644
--- a/wizards/com/sun/star/wizards/report/ReportTextDocument.java
+++ b/wizards/com/sun/star/wizards/report/ReportTextDocument.java
@@ -515,7 +515,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
return oDBColumn;
}
}
- return null;
+ throw new IllegalArgumentException("Searching for column " + _FieldName + " failed");
}
private static FieldColumn[] removeFieldColumnByFieldName(String _FieldName, FieldColumn[] _FieldColumns)