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

Unhandled null pointer exception at initializing a servlet #10

Open
drogatkin opened this issue Dec 19, 2020 · 1 comment
Open

Unhandled null pointer exception at initializing a servlet #10

drogatkin opened this issue Dec 19, 2020 · 1 comment

Comments

@drogatkin
Copy link
Owner

I post this issue on behalf of Robert Roth
I had a typo in the
attribute name and because I didn't check for null I created a
NullPointerException. The problem was that it happened in the init()
function of a servlet that was supposed to be initiated at startup.
This lead to Atjeews crashing every time I tried to start it. Because
of that and becasue it happened on an unrooted phone I couldn't remove
the offending servlet either. The only option was to re-install
Atjeews.

I think the problem lies here:

} catch (ServletException se) {

try {
instance.init(ServletAccessDescr.this);
} catch (ServletException se) { // this should probably be: }
catch((Exception e) {
exHolder[0] = se;
}

drogatkin pushed a commit that referenced this issue Dec 19, 2020
@drogatkin
Copy link
Owner Author

I provided the recommended fix, please retest. As for reinstalling Atjeews, perhaps only cleaning data will help, but all servlets need to be installed again.

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