{"action":"created","issue":{"url":"https://api.github.com/repos/yangchaojiang/ZoomPreviewPicture/issues/46","repository_url":"https://api.github.com/repos/yangchaojiang/ZoomPreviewPicture","labels_url":"https://api.github.com/repos/yangchaojiang/ZoomPreviewPicture/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/yangchaojiang/ZoomPreviewPicture/issues/46/comments","events_url":"https://api.github.com/repos/yangchaojiang/ZoomPreviewPicture/issues/46/events","html_url":"https://github.com/yangchaojiang/ZoomPreviewPicture/issues/46","id":304136715,"number":46,"title":" java.lang.NullPointerException: loader no init","user":{"login":"jounghu","id":30997324,"avatar_url":"https://avatars2.githubusercontent.com/u/30997324?v=4","gravatar_id":"","url":"https://api.github.com/users/jounghu","html_url":"https://github.com/jounghu","followers_url":"https://api.github.com/users/jounghu/followers","following_url":"https://api.github.com/users/jounghu/following{/other_user}","gists_url":"https://api.github.com/users/jounghu/gists{/gist_id}","starred_url":"https://api.github.com/users/jounghu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jounghu/subscriptions","organizations_url":"https://api.github.com/users/jounghu/orgs","repos_url":"https://api.github.com/users/jounghu/repos","events_url":"https://api.github.com/users/jounghu/events{/privacy}","received_events_url":"https://api.github.com/users/jounghu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-11T07:18:53Z","updated_at":"2018-03-11T10:53:46Z","closed_at":"2018-03-11T10:20:40Z","author_association":"NONE","body":"1，九宫格我用的是传递的是List `<String>`\r\n```java\r\n\r\n  private List<ThumbViewInfo> computeBoundsBackward(List list) {\r\n            List<ThumbViewInfo> thumbViewInfos = new ArrayList<>();\r\n            for (int i = 0; i < activeNglIv.getChildCount(); i++) {\r\n                View item = activeNglIv.getChildAt(i);\r\n                Rect bounds = new Rect();\r\n                if (item != null) {\r\n                    ImageView thumbView = (ImageView) item;\r\n                    thumbView.getGlobalVisibleRect(bounds);\r\n                }\r\n                ThumbViewInfo viewInfo = new ThumbViewInfo((String) list.get(i));\r\n                viewInfo.setmBounds(bounds);\r\n                thumbViewInfos.add(viewInfo);\r\n            }\r\n            return thumbViewInfos;\r\n        }\r\n\r\n```\r\n\r\n然后我将返回的 thumbViewInfos 放进去，点击图片预览\r\n\r\n```log\r\n\r\n                                                                                       java.lang.NullPointerException: loader no init\r\n                                                                                           at com.previewlibrary.ZoomMediaLoader.getLoader(ZoomMediaLoader.java:34)\r\n                                                                                           at com.previewlibrary.view.BasePhotoFragment.initDate(BasePhotoFragment.java:169)\r\n                                                                                           at com.previewlibrary.view.BasePhotoFragment.onViewCreated(BasePhotoFragment.java:73)\r\n                                                                                           at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1430)\r\n                                                                                           at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1740)\r\n                                                                                           at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1809)\r\n                                                                                           at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:799)\r\n                                                                                           at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2580)\r\n                                                                                           at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2367)\r\n                                                                                           at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2322)\r\n                                                                                           at android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:2199)\r\n                                                                                           at android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:651)\r\n                                                                                           at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:145)\r\n                                                                                           at android.support.v4.view.ViewPager.populate(ViewPager.java:1236)\r\n                                                                                           at android.support.v4.view.ViewPager.populate(ViewPager.java:1084)\r\n                                                                                           at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1614)\r\n                                                                                           at android.view.View.measure(View.java:16497)\r\n                                                                                           at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)\r\n                                                                                           at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)\r\n                                                                                           at android.view.View.measure(View.java:16497)\r\n                                                                                           at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)\r\n                                                                                           at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)\r\n                                                                                           at android.view.View.measure(View.java:16497)\r\n                                                                                           at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)\r\n                                                                                           at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)\r\n                                                                                           at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)\r\n                                                                                           at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)\r\n                                                                                           at android.view.View.measure(View.java:16497)\r\n                                                                                           at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)\r\n                                                                                           at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)\r\n                                                                                           at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2291)\r\n                                                                                           at android.view.View.measure(View.java:16497)\r\n                                                                                           at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1940)\r\n                                                                                           at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1137)\r\n                                                                                           at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1319)\r\n                                                                                           at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1024)\r\n                                                                                           at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5694)\r\n                                                                                           at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)\r\n                                                                                           at android.view.Choreographer.doCallbacks(Choreographer.java:574)\r\n                                                                                           at android.view.Choreographer.doFrame(Choreographer.java:544)\r\n                                                                                           at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)\r\n                                                                                           at android.os.Handler.handleCallback(Handler.java:733)\r\n                                                                                           at android.os.Handler.dispatchMessage(Handler.java:95)\r\n                                                                                           at android.os.Looper.loop(Looper.java:136)\r\n                                                                                           at android.app.ActivityThread.main(ActivityThread.java:5019)\r\n                                                                                           at java.lang.reflect.Method.invokeNative(Native Method)\r\n                                                                                           at java.lang.reflect.Method.invoke(Method.java:515)\r\n                                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)\r\n                                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)\r\n                                                                                           at dalvik.system.NativeStart.main(Native Method)\r\n\r\n\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yangchaojiang/ZoomPreviewPicture/issues/comments/372106161","html_url":"https://github.com/yangchaojiang/ZoomPreviewPicture/issues/46#issuecomment-372106161","issue_url":"https://api.github.com/repos/yangchaojiang/ZoomPreviewPicture/issues/46","id":372106161,"user":{"login":"yangchaojiang","id":13806413,"avatar_url":"https://avatars3.githubusercontent.com/u/13806413?v=4","gravatar_id":"","url":"https://api.github.com/users/yangchaojiang","html_url":"https://github.com/yangchaojiang","followers_url":"https://api.github.com/users/yangchaojiang/followers","following_url":"https://api.github.com/users/yangchaojiang/following{/other_user}","gists_url":"https://api.github.com/users/yangchaojiang/gists{/gist_id}","starred_url":"https://api.github.com/users/yangchaojiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangchaojiang/subscriptions","organizations_url":"https://api.github.com/users/yangchaojiang/orgs","repos_url":"https://api.github.com/users/yangchaojiang/repos","events_url":"https://api.github.com/users/yangchaojiang/events{/privacy}","received_events_url":"https://api.github.com/users/yangchaojiang/received_events","type":"User","site_admin":false},"created_at":"2018-03-11T10:53:45Z","updated_at":"2018-03-11T10:53:45Z","author_association":"OWNER","body":"谢谢支持哈，记得star😃 😃 😃 "}}
{"actor":{"display_login":"yangchaojiang"}}