Skip to content

Commit

Permalink
fix(#222): Configure projects crashes if composer.json name field is …
Browse files Browse the repository at this point in the history
…not defined
  • Loading branch information
amenk committed Dec 6, 2024
1 parent 8a1025e commit 881e506
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class ConfigureShopwareProjectAction : DumbAwareAction(
val composerJsonBody = FileUtils.readFileToString(File(composerJsonPath), "UTF-8")
val jsonObject = JSONObject(composerJsonBody)

if (jsonObject.getString("name") != "shopware/platform") {
if (jsonObject.has("name") && jsonObject.getString("name") != "shopware/platform") {
return
}

Expand Down

0 comments on commit 881e506

Please sign in to comment.