{"action":"closed","issue":{"url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/1035","labels_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/1035/labels{/name}","comments_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/1035/comments","events_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/1035/events","html_url":"https://github.com/nostra13/Android-Universal-Image-Loader/issues/1035","id":94299737,"number":1035,"title":"onLoadingComplete bitmap is null","user":{"login":"teejoe","id":3926615,"avatar_url":"https://avatars.githubusercontent.com/u/3926615?v=3","gravatar_id":"","url":"https://api.github.com/users/teejoe","html_url":"https://github.com/teejoe","followers_url":"https://api.github.com/users/teejoe/followers","following_url":"https://api.github.com/users/teejoe/following{/other_user}","gists_url":"https://api.github.com/users/teejoe/gists{/gist_id}","starred_url":"https://api.github.com/users/teejoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teejoe/subscriptions","organizations_url":"https://api.github.com/users/teejoe/orgs","repos_url":"https://api.github.com/users/teejoe/repos","events_url":"https://api.github.com/users/teejoe/events{/privacy}","received_events_url":"https://api.github.com/users/teejoe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T12:44:27Z","updated_at":"2015-07-10T13:56:37Z","closed_at":"2015-07-10T13:56:37Z","body":"I'm using UIL in a RecyclerView with a GridAdapter,  some times onLoadingComplete gets a null bitmap but most times not, why is that?\r\n\r\n```\r\nDisplayImageOptions options = new DisplayImageOptions.Builder()\r\n        .resetViewBeforeLoading(false)\r\n        .bitmapConfig(Bitmap.Config.RGB_565)\r\n        .imageScaleType(ImageScaleType.IN_SAMPLE_INT)\r\n        .cacheOnDisk(true)\r\n        .build();\r\nImageLoader.getInstance().displayImage(\r\n        url,\r\n        imageView,\r\n        options,\r\n        new SimpleImageLoadingListener() {\r\n            @Override\r\n            public void onLoadingComplete(String s, View view, Bitmap bitmap) {\r\n                // Sometimes the bitmap is null and ImageView is empty when loading complete.\r\n                imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);\r\n            }\r\n        });\r\n});\r\n\r\n```"}}