Skip to content
Snippets Groups Projects
Commit cc561439 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Added NULL check

parent 581a45ba
Branches
No related tags found
No related merge requests found
......@@ -4,10 +4,13 @@
var Organism = function(oJSON)
{
this.organismId = oJSON.organismId;
this.latinName = oJSON.latinName;
this.tradeName = oJSON.tradeName;
this.organismLocaleSet = oJSON.organismLocaleSet;
if(oJSON != null)
{
this.organismId = oJSON.organismId;
this.latinName = oJSON.latinName;
this.tradeName = oJSON.tradeName;
this.organismLocaleSet = oJSON.organismLocaleSet;
}
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment