Skip to content

Unhandled null pointer exception at initializing a servlet #10

@drogatkin

Description

@drogatkin

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions