Skip to content

Fix cyclic dependency and throw error if missing metadata folder#1470

Merged
vmutafov merged 1 commit intomasterfrom
vmutafov/nativescriptexception-fix
Sep 9, 2019
Merged

Fix cyclic dependency and throw error if missing metadata folder#1470
vmutafov merged 1 commit intomasterfrom
vmutafov/nativescriptexception-fix

Conversation

@vmutafov
Copy link
Copy Markdown
Contributor

@vmutafov vmutafov commented Sep 9, 2019

Related to: #1471
Related to: #1382

Currently, if the metadata folder is missing there is no exception thrown. When checking the behavior around the metadata files reading, a cyclic dependency was found if a NativeScriptException is thrown early in the runtime initialization phase. The dependency occurs when trying to get an ObjectManager instance and if no object manager is found an exception is thrown. This results in a cycle of crashes. There is a workaround as the object manager is not needed in every case of throwing an exception but only when the NativeScriptException contains a nested JS or Java exception.

After this fix, an exception was added in case the metadata folder is missing.

@cla-bot cla-bot Bot added the cla: yes label Sep 9, 2019
@vmutafov vmutafov merged commit 15ea13c into master Sep 9, 2019
@vmutafov vmutafov deleted the vmutafov/nativescriptexception-fix branch September 9, 2019 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants