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

coverity#1326236 Explicit null dereferenced

Change-Id: Ic89c9b39f5f9c260581130da528bc0f514d4ef06
üst 528d2ce5
......@@ -144,17 +144,16 @@ public class ScriptBrowseNode extends PropertySet implements
public void updateURI(Parcel p) {
parent = p;
ScriptMetaData data = null;
try {
data = (ScriptMetaData)parent.getByName(name);
ScriptMetaData data = (ScriptMetaData)parent.getByName(name);
uri = data.getShortFormScriptURL();
}
// TODO fix exception types to be caught here, should we rethrow?
catch (Exception e) {
LogUtils.DEBUG("** caught exception getting script data for " + name +
" ->" + e.toString());
}
uri = data.getShortFormScriptURL();
}
// implementation of XInvocation interface
......@@ -301,4 +300,4 @@ public class ScriptBrowseNode extends PropertySet implements
public boolean hasProperty(String aName) {
return false;
}
}
\ No newline at end of file
}
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