{"action":"closed","issue":{"url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/177","repository_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android","labels_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/177/comments","events_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/177/events","html_url":"https://github.com/dji-sdk/Mobile-SDK-Android/issues/177","id":267603309,"number":177,"title":"OnCreate - java.lang.NullPointerException: Attempt to invoke virtual method 'dji.midware.data.config.P3.ProductType dji.midware.data.manager.P3.DJIProductManager.c()'","user":{"login":"kjknair","id":12934264,"avatar_url":"https://avatars3.githubusercontent.com/u/12934264?v=4","gravatar_id":"","url":"https://api.github.com/users/kjknair","html_url":"https://github.com/kjknair","followers_url":"https://api.github.com/users/kjknair/followers","following_url":"https://api.github.com/users/kjknair/following{/other_user}","gists_url":"https://api.github.com/users/kjknair/gists{/gist_id}","starred_url":"https://api.github.com/users/kjknair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjknair/subscriptions","organizations_url":"https://api.github.com/users/kjknair/orgs","repos_url":"https://api.github.com/users/kjknair/repos","events_url":"https://api.github.com/users/kjknair/events{/privacy}","received_events_url":"https://api.github.com/users/kjknair/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-10-23T09:41:29Z","updated_at":"2018-02-15T18:21:46Z","closed_at":"2018-02-15T18:21:46Z","author_association":"NONE","body":"When i am using this in my activity onCreate() the app crashs\r\n\r\n```\r\nbinding.body.droneLiveView.setSurfaceTextureListener(new TextureView.SurfaceTextureListener() {\r\n            @Override\r\n            public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {\r\n                if (codecManager == null) {\r\n                    codecManager = new DJICodecManager(BaseSurveyActivity.this.getApplicationContext(), surface, width, height, UsbAccessoryService.VideoStreamSource.Fpv);\r\n                }\r\n            }\r\n\r\n            @Override\r\n            public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {\r\n\r\n            }\r\n\r\n            @Override\r\n            public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {\r\n                if (codecManager != null) {\r\n                    codecManager.cleanSurface();\r\n                    codecManager = null;\r\n                }\r\n                return false;\r\n            }\r\n\r\n            @Override\r\n            public void onSurfaceTextureUpdated(SurfaceTexture surface) {\r\n\r\n            }\r\n        });\r\n```\r\n\r\n```\r\nFATAL EXCEPTION: main\r\n                                                                  Process: com.package.djiapp, PID: 4574\r\n                                                                  java.lang.NullPointerException: Attempt to invoke virtual method 'dji.midware.data.config.P3.ProductType dji.midware.data.manager.P3.DJIProductManager.c()' on a null object reference\r\n                                                                      at dji.midware.media.e.c.b.a(Unknown Source)\r\n                                                                      at dji.midware.media.e.c.b.a(Unknown Source)\r\n                                                                      at dji.midware.media.e.c.b.a(Unknown Source)\r\n                                                                      at dji.sdk.codec.DJICodecManager.<init>(Unknown Source)\r\n                                                                      at com.package.djiapp.screens.survey.BaseSurveyActivity$2.onSurfaceTextureAvailable(BaseSurveyActivity.java:142)\r\n                                                                      at android.view.TextureView.getHardwareLayer(TextureView.java:368)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16511)\r\n                                                                      at android.view.View.draw(View.java:17310)\r\n                                                                      at android.view.ViewGroup.drawChild(ViewGroup.java:3926)\r\n                                                                      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3716)\r\n                                                                      at android.view.View.draw(View.java:17544)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16534)\r\n                                                                      at android.view.View.draw(View.java:17310)\r\n                                                                      at android.view.ViewGroup.drawChild(ViewGroup.java:3926)\r\n                                                                      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3716)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16529)\r\n                                                                      at android.view.View.draw(View.java:17310)\r\n                                                                      at android.view.ViewGroup.drawChild(ViewGroup.java:3926)\r\n                                                                      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3716)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16529)\r\n                                                                      at android.view.View.draw(View.java:17310)\r\n                                                                      at android.view.ViewGroup.drawChild(ViewGroup.java:3926)\r\n                                                                      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3716)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16529)\r\n                                                                      at android.view.View.draw(View.java:17310)\r\n                                                                      at android.view.ViewGroup.drawChild(ViewGroup.java:3926)\r\n                                                                      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3716)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16529)\r\n                                                                      at android.view.View.draw(View.java:17310)\r\n                                                                      at android.view.ViewGroup.drawChild(ViewGroup.java:3926)\r\n                                                                      at android.support.v4.widget.DrawerLayout.drawChild(DrawerLayout.java:1379)\r\n                                                                      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3716)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16529)\r\n                                                                      at android.view.View.draw(View.java:17310)\r\n                                                                      at android.view.ViewGroup.drawChild(ViewGroup.java:3926)\r\n                                                                      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3716)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16529)\r\n                                                                      at android.view.View.draw(View.java:17310)\r\n                                                                      at android.view.ViewGroup.drawChild(ViewGroup.java:3926)\r\n                                                                      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3716)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16529)\r\n                                                                      at android.view.View.draw(View.java:17310)\r\n                                                                      at android.view.ViewGroup.drawChild(ViewGroup.java:3926)\r\n                                                                      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3716)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16529)\r\n                                                                      at android.view.View.draw(View.java:17310)\r\n                                                                      at android.view.ViewGroup.drawChild(ViewGroup.java:3926)\r\n                                                                      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3716)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16529)\r\n                                                                      at android.view.View.draw(View.java:17310)\r\n                                                                      at android.view.ViewGroup.drawChild(ViewGroup.java:3926)\r\n                                                                      at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3716)\r\n                                                                      at android.view.View.draw(View.java:17544)\r\n                                                                      at com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:3187)\r\n                                                                      at android.view.View.updateDisplayListIfDirty(View.java:16534)\r\n                                                                      at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:325)\r\n                                                                      at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:331)\r\n                                                                      at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:366)\r\n                                                                      at android.view.ViewRootImpl.draw(ViewRootImpl.java:3251)\r\n                                                                      at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3050)\r\n                                                                      at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2632)\r\n                                                                      at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1544)\r\n                                                                      at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7613)\r\n                                                                  \tat android.view.Choreographer$CallbackRecord.run(Chore\r\n\r\n```\r\n\r\nI am using android studio 2.3.3\r\ndji sdk 4.3.2"}}
{"actor":{"display_login":"talobin"}}