Skip to content

Commit

Permalink
LegacySkinAdapter: make resource patch validity check more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Jan 22, 2020
1 parent cda90fd commit bff5bf2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function fromSkinData(SkinData $data) : Skin{

$geometryName = "";
$resourcePatch = json_decode($data->getResourcePatch(), true);
if(is_array($resourcePatch["geometry"]) && is_string($resourcePatch["geometry"]["default"])){
if(isset($resourcePatch["geometry"]["default"]) && is_string($resourcePatch["geometry"]["default"])){
$geometryName = $resourcePatch["geometry"]["default"];
}else{
//TODO: Kick for invalid skin
Expand Down

0 comments on commit bff5bf2

Please sign in to comment.