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

Null Pointer Exception in Async Task #73

Closed
tomnobleman opened this issue May 20, 2014 · 3 comments
Closed

Null Pointer Exception in Async Task #73

tomnobleman opened this issue May 20, 2014 · 3 comments
Assignees
Labels
Milestone

Comments

@tomnobleman
Copy link

Caused by: java.lang.NullPointerException
at om.rampo.updatechecker.ASyncCheck.containsNumber(ASyncCheck.java:152) at com.rampo.updatechecker.ASyncCheck.doInBackground(ASyncCheck.java:93) at com.rampo.updatechecker.ASyncCheck.doInBackground(ASyncCheck.java:42)

@pietrorampini pietrorampini self-assigned this May 20, 2014
@pietrorampini pietrorampini added this to the m2.1.0 milestone Jul 6, 2014
@pietrorampini
Copy link
Owner

Which package name have you used to produce this bug?

pietrorampini added a commit that referenced this issue Jul 6, 2014
@pietrorampini
Copy link
Owner

Can you try b2a8419 and report to me if the bug was solved?

@tomnobleman
Copy link
Author

it was because i declared the UpdateChecker object as a static variable. sry
in Android Studio i wrote as solution:

import com.rampo.updatechecker.Notice;
import com.rampo.updatechecker.UpdateChecker;

    UpdateChecker checker = new UpdateChecker(this);
    //noinspection AccessStaticViaInstance
    checker.setNotice(Notice.NOTIFICATION);
    //noinspection AccessStaticViaInstance
    checker.start();

package i use in gradle is: compile 'com.github.rampo.updatechecker:library:2.0.0'

let me know if you want to know more

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

No branches or pull requests

2 participants