Crash after OCID DB is downloaded
Created by: Osteri
Thank you for your feedback! Please add below details so that we can help you a bit faster.
Agreements
Please check these boxes to ensure you've actually read and understood these important rules!
-
I have reviewed and accepted the guidelines for contributing to this project. -
I have searched the open Issues and made sure I am not filing a duplicate. -
I have read the notes on debugging and will properly maintain this Issue.
Overview
The generated getter function setRejCause expects a valid Integer object. The object should be coverted in to a primitive int, which does not happen, when the converted Integer value is null (and not a valid Integer): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
This is not a duplicate of https://github.com/CellularPrivacy/Android-IMSI-Catcher-Detector/issues/870, since it solves a different issue.
I have already made a fix for this and will make a pull request later. I created this issue just to trace this specific issue.
-
AIMSICD
version (see theAbout
screen): latest development branch; v0.1.43-alpha-SNAPSHOT-normal - Phone and ROM running current release: omnirom 6.0.1
- Link to logfile without identifyable data:
06-02 01:42:49.770: E/AndroidRuntime(16818): FATAL EXCEPTION: main
06-02 01:42:49.770: E/AndroidRuntime(16818): Process: com.SecUpwN.AIMSICD, PID: 16818
06-02 01:42:49.770: E/AndroidRuntime(16818): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
06-02 01:42:49.770: E/AndroidRuntime(16818): at com.secupwn.aimsicd.utils.RealmHelper$3.execute(RealmHelper.java:453)
Reproduction
Clean installation; try to download OCID data, program forcefully closes (unhandled exception).
References
This problem is also referenced in @Nordlenning's comment: https://github.com/CellularPrivacy/Android-IMSI-Catcher-Detector/issues/870#issuecomment-223381051
Note: there are 2 separate fatal exceptions at @Nordlenning's log output, this ticket is only created for the other exception.