Skip to content

Add super.onCreate() call in generated onCreate method #1422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2019

Conversation

vmutafov
Copy link
Contributor

@vmutafov vmutafov commented Jul 17, 2019

Related to: NativeScript/nativescript-dev-webpack#952
Related to: #1426

Currently, if the user hasn't provided an onCreate method implementation, the SBG generates the onCreate method for object initialization. This auto-generated method, however, doesn't have a call to the parent class' method and in some cases like extending an IntentService an exception occurs when Android creates an instance of the service. This commit adds a call to super.onCreate()

@cla-bot cla-bot bot added the cla: yes label Jul 17, 2019
Copy link
Contributor

@vtrifonov vtrifonov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better create an issue for this.

@vmutafov
Copy link
Contributor Author

@vtrifonov linked to the origin issue in the webpack repo

@vmutafov vmutafov merged commit b68158f into master Jul 19, 2019
@vmutafov vmutafov deleted the vmutafov/sbg-service-oncreate-call-super branch July 19, 2019 08:11
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