Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

CA-16/Fix floor plan crash #20

Merged
merged 7 commits into from
Jan 4, 2017
Merged

CA-16/Fix floor plan crash #20

merged 7 commits into from
Jan 4, 2017

Conversation

rock3r
Copy link
Collaborator

@rock3r rock3r commented Dec 30, 2016

This PR addresses lemberg/connfa-android#16. It's another NPE, where a failing network request yields a null image source and then crashes the app. This PR includes the same kind of cleanup #19 contained, too. See commits for more details.

@rock3r rock3r added the bug label Dec 30, 2016
Copy link
Contributor

@danybony danybony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one method order comment

@Override
public void onDataUpdated(List<Integer> requestIds) {
@Override
public void onStart() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this after onCreateView to follow the lifecycle

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private class LoadPlansTask extends AsyncTask<Void, Void, List<FloorPlan>> {
private static class LoadPlansTask extends AsyncTask<Void, Void, List<FloorPlan>> {

private final LoadPlansTaskCallback callback;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@danybony danybony merged commit 7f92351 into develop Jan 4, 2017
@danybony danybony deleted the CA-16_Fix_floor_plan_crash branch January 4, 2017 09:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

2 participants