Skip to content
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

ConfigurationBuilder.build() generates NPE if no @ReportCrashes annotation exists on Application #365

Closed
william-ferguson-au opened this issue Feb 9, 2016 · 1 comment

Comments

@william-ferguson-au
Copy link
Member

And .build(); method fails with

Caused by: java.lang.NullPointerException: Attempt to get length of null array
at org.acra.config.ACRAConfiguration.copyArray(ACRAConfiguration.java:1232)
at org.acra.config.ACRAConfiguration.<init>(ACRAConfiguration.java:113)
at org.acra.config.ConfigurationBuilder.build(ConfigurationBuilder.java:163)

cause annotationConfig.additionalDropBoxTags is null .

@william-ferguson-au william-ferguson-au changed the title ConfigurationBuilder.build() generates NPE if dropBoxTags is null ConfigurationBuilder.build() generates NPE if dropBoxTags is null Feb 9, 2016
@william-ferguson-au william-ferguson-au changed the title ConfigurationBuilder.build() generates NPE if dropBoxTags is null ConfigurationBuilder.build() generates NPE if no @ReportCrashes annotation exists on Application Feb 10, 2016
@william-ferguson-au
Copy link
Member Author

NB teh work around is add an empty @ReportCrashes annotation to your Application class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant