yangxvlin / Family-Artifact-Register

COMP30022 - IT Project - 2019S2 - Capstone Project
GNU General Public License v3.0
3 stars 1 forks source link

bug which causes app to crash #183

Closed chen-dudu closed 5 years ago

chen-dudu commented 5 years ago

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.family_artifact_register, PID: 16085 java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference at com.example.family_artifact_register.UI.Util.MediaProcessHelper.cropCenter(MediaProcessHelper.java:43) at com.example.family_artifact_register.UI.MapServiceFragment.MapDisplayFragment.setDisplayArtifactItems(MapDisplayFragment.java:200) at com.example.family_artifact_register.UI.MapServiceFragment.AllArtifactMapFragment$1$1.onItemSelected(AllArtifactMapFragment.java:127) at android.widget.AdapterView.fireOnSelected(AdapterView.java:957) at android.widget.AdapterView.dispatchOnItemSelected(AdapterView.java:946) at android.widget.AdapterView.access$300(AdapterView.java:55) at android.widget.AdapterView$SelectionNotifier.run(AdapterView.java:910) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

chen-dudu commented 5 years ago

when i clicked footprint on the bottom bar, i got this

chen-dudu commented 5 years ago

fixed in #184