android - KenBurnsView - Load image from a url returns NPE -



android - KenBurnsView - Load image from a url returns NPE -

i'm trying utilize kenburnsview library imageview ken burn's effect. returns null pointer exception each time want load image url using image loader.

here stack trace:

06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ java.lang.nullpointerexception 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.flaviofaria.kenburnsview.mathutils.getrectratio(mathutils.java:44) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.flaviofaria.kenburnsview.randomtransitiongenerator.generaterandomrect(randomtransitiongenerator.java:93) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.flaviofaria.kenburnsview.randomtransitiongenerator.generatenexttransition(randomtransitiongenerator.java:64) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.flaviofaria.kenburnsview.kenburnsview.startnewtransition(kenburnsview.java:207) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.flaviofaria.kenburnsview.kenburnsview.handleimagechange(kenburnsview.java:280) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.flaviofaria.kenburnsview.kenburnsview.setimagedrawable(kenburnsview.java:140) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.nostra13.universalimageloader.core.imageaware.imageviewaware.setimagedrawable(imageviewaware.java:171) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.nostra13.universalimageloader.core.imageloader.displayimage(imageloader.java:252) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.nostra13.universalimageloader.core.imageloader.displayimage(imageloader.java:357) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.nostra13.universalimageloader.core.imageloader.displayimage(imageloader.java:335) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.kedai.baucar.fragment.homefragment$2.onresponse(homefragment.java:513) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.kedai.baucar.fragment.homefragment$2.onresponse(homefragment.java:450) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.kedai.baucar.utils.gsonrequest.deliverresponse(gsonrequest.java:106) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.kedai.baucar.fragment.homefragment$1.deliverresponse(homefragment.java:425) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.kedai.baucar.fragment.homefragment$1.deliverresponse(homefragment.java:420) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.android.volley.executordelivery$responsedeliveryrunnable.run(executordelivery.java:99) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ android.os.handler.handlecallback(handler.java:733) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ android.os.handler.dispatchmessage(handler.java:95) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ android.os.looper.loop(looper.java:136) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ android.app.activitythread.main(activitythread.java:5001) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ java.lang.reflect.method.invokenative(native method) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ java.lang.reflect.method.invoke(method.java:515) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) 06-20 16:05:57.485 7442-7442/com.kedai.baucar w/system.err﹕ @ com.android.internal.os.zygoteinit.main(zygoteinit.java:601) 06-20 16:05:57.495 7442-7442/com.kedai.baucar w/system.err﹕ @ dalvik.system.nativestart.main(native method)

also, i've found similar question here, 1 instead loading url, loads on run-time.

i've tried solution adding updatedrawablebounds(); within setimageresource(int resid) method, still couldn't create it.

has ever experienced before? how prepare this?

i'm author of library , pushed few changes believe prepare problem. please download latest version (v1.0.3) , allow me know if happens again.

android imageview android-kenburnsview

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -