Skip to content

SBG fails when 'nativescript' property in package.json is not an object #1409

@vmutafov

Description

@vmutafov

Currently, the SBG fails with a ClassCastException if there is a nativescript property in some package.json and it's a String. We expect this property to be an object and crash when parsing it. An instanceof check should be performed before casting.

Crashing scenario package.json:
{ "nativescript": "randomtext" }

Expected behavior is not to crash and ignore the property.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions