summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-20 15:28:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-20 21:18:35 +0100
commitf43dde5d2dd4afecf75ba69f1ad3d3f180c57321 (patch)
tree56d5b6c874bdc8d5f013563b8abb4f9ed3c65a75 /wizards/com/sun/star
parent3d9103037d00cbb0df37f78ee56d34e2cd8c7065 (diff)
coverity#1326559 Dereference before null check
Change-Id: I1661514bf3002b79544615620843d1e535aabfce
Diffstat (limited to 'wizards/com/sun/star')
-rw-r--r--wizards/com/sun/star/wizards/common/PlaceholderTextElement.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java b/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java
index d3756bc66329..60ec7eb6aed0 100644
--- a/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java
+++ b/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java
@@ -41,7 +41,7 @@ public class PlaceholderTextElement extends TextElement
public void write(Object textRange)
{
super.write(textRange);
- if (text == null || text.equals(PropertyNames.EMPTY_STRING))
+ if (text.equals(PropertyNames.EMPTY_STRING))
{
XTextRange xTextRange = UnoRuntime.queryInterface(XTextRange.class, textRange);
try