-3

Our app was working on target SDK version 22 but due to Google policies we have updated it to version 26 recently , whenever we manually switch off the permission and switch on it at same moment, it crashes with null pointer exception at many places, please suggest how to resolve this issue.

Ashtri
  • 1
  • 3
    Possible duplicate of [What is a NullPointerException, and how do I fix it?](https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it) – Zoe Apr 02 '19 at 15:47

1 Answers1

0

Apply try n catch to the code you are using permission or in log cat try to find which line crash is coming. Apply try catch to that code also and handle your way.

Farah Abbas
  • 39
  • 1
  • 10