From f43dde5d2dd4afecf75ba69f1ad3d3f180c57321 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 20 Oct 2015 15:28:22 +0100 Subject: coverity#1326559 Dereference before null check Change-Id: I1661514bf3002b79544615620843d1e535aabfce --- wizards/com/sun/star/wizards/common/PlaceholderTextElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wizards') 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 -- cgit