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

coverity#1326409 Dereference null return value

Change-Id: I960c4ad4ffe4f0e86f3d1f0fb364296f31bf9d92
üst 0e8a40e8
...@@ -230,13 +230,12 @@ public class Control extends Shape ...@@ -230,13 +230,12 @@ public class Control extends Shape
{ {
throw new IllegalArgumentException(); throw new IllegalArgumentException();
} }
return getPeer().getPreferredSize();
} }
catch (Exception e) catch (Exception e)
{ {
e.printStackTrace(System.err); e.printStackTrace(System.err);
return null;
} }
return getPeer().getPreferredSize();
} }
public void setPropertyValue(String _sPropertyName, Object _aPropertyValue) throws Exception public void setPropertyValue(String _sPropertyName, Object _aPropertyValue) throws Exception
......
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