Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A Android-IMSI-Catcher-Detector
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 162
    • Issues 162
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CellularPrivacy
  • Android-IMSI-Catcher-Detector
  • Merge requests
  • !824

MapFragment.loadEntries: Return null if not attached

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/vanitasvitae/fix_map_fragment_crash into development Mar 29, 2016
  • Overview 5
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: vanitasvitae

Thank you for submitting a pull request! Please add below details so that we can merge it faster.


Agreements

  • I have reviewed and accepted the guidelines for contributing to this project.
  • I have reviewed and closely followed the Style Guide for this Android app.

Overview

AIMSICD crashed before when the MapFragment was opened, then another fragment (eg. DatabaseViewer) was opened afterwards and then the app was closed by the user by double tapping the back button. The MapFragment then threw a IllegalStateException.

I added check isAdded() to three points in the code to return null if fragment is not attached to prevent a crash when exiting the app.


Classification

  • Bugfix (non-breaking change which fixes an existing issue)

References

If your pull request is related to or solves any existing Issues, please link them here.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/vanitasvitae/fix_map_fragment_crash