Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2362] Android: Crop Module not working

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.1.0
Fix Version/sn/a
Componentsn/a
Labelsn/a
Reporter Ricardo Ramirez
AssigneeYordan Banev
Created2017-09-25T23:32:14.000+0000
Updated2018-10-17T19:01:03.000+0000

Description

Issue Description

Project is crashing using Crop module on Android in 6.1.0 GA

Steps to replicate

Download the attached project https://drive.google.com/file/d/0BwTWo-c2a0b9cHFpTjAtTGVXS00/view?usp=sharing Run CrashLog

[ERROR] :  TiApplication: (main) [69316,101602] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ias.dispatchM/com.soundcloud.android.crop.CropImageActivity}: java.lang.NullPointerException: Attempt to write to field 'android.content.Context com.soundcloud.android.crop.CropImageView.context' on a null object reference; Titanium 6.1.0,2017/05/26 15:24,undefined
[ERROR] :  TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ias.dispatchM/com.soundcloud.android.crop.CropImageActivity}: java.lang.NullPointerException: Attempt to write to field 'android.content.Context com.soundcloud.android.crop.CropImageView.context' on a null object reference
[ERROR] :  TiApplication: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2666)
[ERROR] :  TiApplication: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727)
[ERROR] :  TiApplication: 	at android.app.ActivityThread.-wrap12(ActivityThread.java)
[ERROR] :  TiApplication: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
[ERROR] :  TiApplication: 	at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] :  TiApplication: 	at android.os.Looper.loop(Looper.java:154)
[ERROR] :  TiApplication: 	at android.app.ActivityThread.main(ActivityThread.java:6121)
[ERROR] :  TiApplication: 	at java.lang.reflect.Method.invoke(Native Method)
[ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
[ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
[ERROR] :  TiApplication: Caused by: java.lang.NullPointerException: Attempt to write to field 'android.content.Context com.soundcloud.android.crop.CropImageView.context' on a null object reference
[ERROR] :  TiApplication: 	at com.soundcloud.android.crop.CropImageActivity.setupViews(CropImageActivity.java:97)
[ERROR] :  TiApplication: 	at com.soundcloud.android.crop.CropImageActivity.onCreate(CropImageActivity.java:75)
[ERROR] :  TiApplication: 	at android.app.Activity.performCreate(Activity.java:6682)
[ERROR] :  TiApplication: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
[ERROR] :  TiApplication: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2619)
[ERROR] :  TiApplication: 	... 9 more
[INFO] :   Paused listener fired, Idle time set to:240

Comments

  1. Ricardo Ramirez 2017-10-05

    [~emerriman] any update here?
  2. Yordan Banev 2017-10-09

JSON Source