parse-community / ParseUI-Android

ParseUI contains user interface libraries for building apps with the Parse Android SDK.
Other
592 stars 324 forks source link

Weird ClassCastException #131

Closed RafaRuiz closed 8 years ago

RafaRuiz commented 8 years ago

Hello.

I'm using an own class of ParseUser, just to override ParseUser and use custom methods:

@ParseClassName("_User")
public class MyParseUser extends com.parse.ParseUser {

    @Override
    public JSONArray getJSONArray(String key) {
        JSONArray jsonArray = super.getJSONArray(key);
        if (jsonArray == null)
            return new JSONArray();
        else
            return jsonArray;
    }

    public int getPoints() {
        Number puntos = getNumber("puntos");
        if (puntos != null) {
            return puntos.intValue();
        } else {
            return -1;
        }
    }

}

everything has worked fine until now, but it throws ClassCastException when I use:

    Parse.enableLocalDatastore(this);

on MainApplication.class.

.... why? :laughing:

Thanks.

parse-github-bot commented 8 years ago

Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.

Please try the latest SDK. Our release notes have details about what issues were fixed in each release.

In addition, you might find the following resources helpful:

parse-github-bot commented 8 years ago

This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback.

parse-github-bot commented 8 years ago

We are closing this issue due to another 7 days of inactivity. If you have additional information to help pinpoint this issue as an SDK bug, please reopen it with the additional information.Thank you for your feedback.