Skip to content

NPE with new Parse initializer #296

@grantland

Description

@grantland

From 7cec3b4#commitcomment-14948582:

There seems to be a bug here...if I'm using Stetho the builder will be not be instantitated and this.interceptors appears to be a null object. I was able to workaround by downgrading to 1.11.0:

Parse.addParseNetworkInterceptor(new ParseStethoInterceptor());
Parse.initialize(context, parseAppId, parseClientKey);
E/AndroidRuntime( 3595): Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void java.util.List.clear()' on a null object reference
E/AndroidRuntime( 3595):    at com.parse.Parse$Configuration$Builder.setNetworkInterceptors(Parse.java:157)
E/AndroidRuntime( 3595):    at com.parse.Parse$Configuration$Builder.access$600(Parse.java:47)
E/AndroidRuntime( 3595):    at com.parse.Parse.initialize(Parse.java:339)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions