Kaydet (Commit) f43dde5d authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326559 Dereference before null check

Change-Id: I1661514bf3002b79544615620843d1e535aabfce
üst 3d910303
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment