{"action":"created","issue":{"url":"https://api.github.com/repos/molinch/FFImageLoading/issues/29","labels_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/29/comments","events_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/29/events","html_url":"https://github.com/molinch/FFImageLoading/issues/29","id":102417767,"number":29,"title":"Null Pointer Exception","user":{"login":"NimaGhaedsharafi","id":3203970,"avatar_url":"https://avatars.githubusercontent.com/u/3203970?v=3","gravatar_id":"","url":"https://api.github.com/users/NimaGhaedsharafi","html_url":"https://github.com/NimaGhaedsharafi","followers_url":"https://api.github.com/users/NimaGhaedsharafi/followers","following_url":"https://api.github.com/users/NimaGhaedsharafi/following{/other_user}","gists_url":"https://api.github.com/users/NimaGhaedsharafi/gists{/gist_id}","starred_url":"https://api.github.com/users/NimaGhaedsharafi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NimaGhaedsharafi/subscriptions","organizations_url":"https://api.github.com/users/NimaGhaedsharafi/orgs","repos_url":"https://api.github.com/users/NimaGhaedsharafi/repos","events_url":"https://api.github.com/users/NimaGhaedsharafi/events{/privacy}","received_events_url":"https://api.github.com/users/NimaGhaedsharafi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-21T16:40:31Z","updated_at":"2015-08-21T16:51:36Z","closed_at":null,"body":"Hi\r\n\r\nevery time I try to use the package it's gonna throwing a null pointer exception,\r\nthis is the stack trace\r\n\r\nI tried to run it on UIThread but there was no hope too and also the inputs are true and meaningful.\r\nthe URL is valid and the Image taken as ImageViewAsync.\r\n\r\nthanks\r\n\r\n<img width=\"1280\" alt=\"screen shot 2015-08-21 at 8 46 35 pm\" src=\"https://cloud.githubusercontent.com/assets/3203970/9413508/719f1c66-4847-11e5-8c69-1f670ee06725.png\">\r\n\r\n<img width=\"1280\" alt=\"screen shot 2015-08-21 at 8 52 57 pm\" src=\"https://cloud.githubusercontent.com/assets/3203970/9413458/2d854fa0-4847-11e5-9596-5622ba2c49f9.png\">\r\n\r\nThread started:  #5\r\n[Mono] DllImport attempting to load: '/system/lib/liblog.so'.\r\n[Mono] DllImport loaded library '/system/lib/liblog.so'.\r\n[Mono] DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so').\r\n[Mono] Searching for '__android_log_print'.\r\n[Mono] Probing '__android_log_print'.\r\n[Mono] Found as '__android_log_print'.\r\n[MonoDroid] UNHANDLED EXCEPTION:\r\n[MonoDroid] Java.Lang.NullPointerException: Exception of type 'Java.Lang.NullPointerException' was thrown.\r\n[MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <IL 0x00011, 0x00078>\r\n[MonoDroid] at Android.Runtime.JNIEnv.CallNonvirtualObjectMethod (intptr,intptr,intptr) [0x00084] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:596\r\n[MonoDroid] at Android.Content.ContextWrapper.get_ApplicationContext () [0x0005f] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.Content.ContextWrapper.cs:86\r\n[MonoDroid] at FFImageLoading.Work.ImageLoaderTask..ctor (FFImageLoading.Cache.IDownloadCache,FFImageLoading.Helpers.IMainThreadDispatcher,FFImageLoading.Helpers.IMiniLogger,FFImageLoading.Work.TaskParameter,Android.Widget.ImageView) <IL 0x0001b, 0x0011b>\r\n[MonoDroid] at FFImageLoading.TaskParameterExtensions.Into (FFImageLoading.Work.TaskParameter,FFImageLoading.Views.ImageViewAsync) <IL 0x0001b, 0x0012b>\r\n[MonoDroid] at FFImageLoading.TaskParameterExtensions.IntoAsync (FFImageLoading.Work.TaskParameter,FFImageLoading.Views.ImageViewAsync) <IL 0x0004d, 0x002ef>\r\n[MonoDroid] at Nabsh.Droid.FragmentProfile.setAvatar (string) [0x00000] in /Users/nghaedsharafi/Projects/Mobile/Nabsh/Nabsh.Droid/Fragments/FragmentProfile.cs:186\r\n[MonoDroid] at Nabsh.Droid.FragmentProfile.updateInformation (Nabsh.UserCollection) [0x000f4] in /Users/nghaedsharafi/Projects/Mobile/Nabsh/Nabsh.Droid/Fragments/FragmentProfile.cs:446\r\n[MonoDroid] at Nabsh.Droid.FragmentProfile.OnResume () [0x000ca] in /Users/nghaedsharafi/Projects/Mobile/Nabsh/Nabsh.Droid/Fragments/FragmentProfile.cs:118\r\n[MonoDroid] at Android.App.Fragment.n_OnResume (intptr,intptr) [0x00009] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.App.Fragment.cs:2231\r\n[MonoDroid] at (wrapper dynamic-method) object.61cf03a3-77d7-4ebc-b1f2-69c24bd42ada (intptr,intptr) <IL 0x00011, 0x0003b>\r\n[MonoDroid]   --- End of managed exception stack trace ---\r\n[MonoDroid] java.lang.NullPointerException\r\n[MonoDroid] \tat android.content.ContextWrapper.getApplicationContext(ContextWrapper.java:109)\r\n[MonoDroid] \tat md53ce6c8f55ef4cac3974be43930779339.FragmentProfile.n_onResume(Native Method)\r\n[MonoDroid] \tat md53ce6c8f55ef4cac3974be43930779339.FragmentProfile.onResume(FragmentProfile.java:38)\r\n[MonoDroid] \tat android.app.Fragment.performResume(Fragment.java:1753)\r\n[MonoDroid] \tat android.app.FragmentManagerImpl.moveToState(FragmentManager.java:925)\r\n[MonoDroid] \tat android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1063)\r\n[MonoDroid] \tat android.app.BackStackRecord.run(BackStackRecord.java:684)\r\n[MonoDroid] \tat android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1450)\r\n[MonoDroid] \tat android.app.Activity.performResume(Activity.java:5365)\r\n[MonoDroid] \tat android.app.ActivityThread.performResumeActivity(ActivityThread.java:2787)\r\n[MonoDroid] \tat android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2826)\r\n[MonoDroid] \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)\r\n[MonoDroid] \tat android.app.ActivityThread.access$800(ActivityThread.java:139)\r\n[MonoDroid] \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200)\r\n[MonoDroid] \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n[MonoDroid] \tat android.os.Looper.loop(Looper.java:136)\r\n[MonoDroid] \tat android.app.ActivityThread.main(ActivityThread.java:5103)\r\n[MonoDroid] \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[MonoDroid] \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n[MonoDroid] \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)\r\n[MonoDroid] \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)\r\n[MonoDroid] \tat dalvik.system.NativeStart.main(Native Method)\r\n[AndroidRuntime] Shutting down VM\r\n[libc] Fatal signal 6 (SIGABRT) at 0x00000399 (code=0), thread 31059 (ir.nifi.nabsh)\r\n\r\n\r\n\r\n____________\r\n\r\n\r\n﻿System.Diagnostics.Debugger.Mono_UnhandledException_internal () in \r\nSystem.Diagnostics.Debugger.Mono_UnhandledException (ex={Java.Lang.RuntimeException: Exception of type 'Java.Lang.RuntimeException' was thrown.\r\n\r\n  --- End of managed exception stack trace ---\r\njava.lang.RuntimeException: Unable to resume activity {ir.nifi.nabsh/md53ce6c8f55ef4cac3974be43930779339.MainActivity}: java.lang.NullPointerException\r\n\tat android.app.ActivityThread.performResumeActivity(ActivityThread.java:2797)\r\n\tat android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2826)\r\n\tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)\r\n\tat android.app.ActivityThread.access$800(ActivityThread.java:139)\r\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n\tat android.os.Looper.loop(Looper.java:136)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5103)\r\n\tat java.lang.reflect.Method.invokeNative(Native Method)\r\n\tat java.lang.reflect.Method.invoke(Method.java:515)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)\r\n\tat dalvik.system.NativeStart.main(Native Method)\r\nCaused by: java.lang.NullPointerException\r\n\tat android.content.ContextWrapper.getApplicationContext(ContextWrapper.java:109)\r\n\tat md53ce6c8f55ef4cac3974be43930779339.FragmentProfile.n_onResume(Native Method)\r\n\tat md53ce6c8f55ef4cac3974be43930779339.FragmentProfile.onResume(FragmentProfile.java:38)\r\n\tat android.app.Fragment.performResume(Fragment.java:1753)\r\n\tat android.app.FragmentManagerImpl.moveToState(FragmentManager.java:925)\r\n\tat android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1063)\r\n\tat android.app.BackStackRecord.run(BackStackRecord.java:684)\r\n\tat android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1450)\r\n\tat android.app.Activity.performResume(Activity.java:5365)\r\n\tat android.app.ActivityThread.performResumeActivity(ActivityThread.java:2787)\r\n\t... 12 more\r\n}) in \r\nAndroid.Runtime.UncaughtExceptionHandler.UncaughtException (thread=, ex=) in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/src/Runtime/UncaughtExceptionHandler.cs:35\r\nJava.Lang.Thread.IUncaughtExceptionHandlerInvoker.n_UncaughtException_Ljava_lang_Thread_Ljava_lang_Throwable_ (Parameters=) in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Java.Lang.Thread.cs:221\r\nobject.19268583-cbff-491c-a1fe-7ef1bac4af23 (Parameters=) in "},"comment":{"url":"https://api.github.com/repos/molinch/FFImageLoading/issues/comments/133492103","html_url":"https://github.com/molinch/FFImageLoading/issues/29#issuecomment-133492103","issue_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/29","id":133492103,"user":{"login":"molinch","id":5130190,"avatar_url":"https://avatars.githubusercontent.com/u/5130190?v=3","gravatar_id":"","url":"https://api.github.com/users/molinch","html_url":"https://github.com/molinch","followers_url":"https://api.github.com/users/molinch/followers","following_url":"https://api.github.com/users/molinch/following{/other_user}","gists_url":"https://api.github.com/users/molinch/gists{/gist_id}","starred_url":"https://api.github.com/users/molinch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molinch/subscriptions","organizations_url":"https://api.github.com/users/molinch/orgs","repos_url":"https://api.github.com/users/molinch/repos","events_url":"https://api.github.com/users/molinch/events{/privacy}","received_events_url":"https://api.github.com/users/molinch/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T16:51:36Z","updated_at":"2015-08-21T16:51:36Z","body":"From what I see it looks like retrieving the Android Context is failing...\r\nWe rely on Android.App.Application.Context to get it. That is very weird.\r\nWould you upload a sample somewhere or email a sample to me?"}}