{"action":"closed","issue":{"url":"https://api.github.com/repos/TobiasHennig/nativescript-toast/issues/8","repository_url":"https://api.github.com/repos/TobiasHennig/nativescript-toast","labels_url":"https://api.github.com/repos/TobiasHennig/nativescript-toast/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/TobiasHennig/nativescript-toast/issues/8/comments","events_url":"https://api.github.com/repos/TobiasHennig/nativescript-toast/issues/8/events","html_url":"https://github.com/TobiasHennig/nativescript-toast/issues/8","id":165286875,"number":8,"title":"Not working with angular ","user":{"login":"vinayhfs","id":1830474,"avatar_url":"https://avatars.githubusercontent.com/u/1830474?v=3","gravatar_id":"","url":"https://api.github.com/users/vinayhfs","html_url":"https://github.com/vinayhfs","followers_url":"https://api.github.com/users/vinayhfs/followers","following_url":"https://api.github.com/users/vinayhfs/following{/other_user}","gists_url":"https://api.github.com/users/vinayhfs/gists{/gist_id}","starred_url":"https://api.github.com/users/vinayhfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinayhfs/subscriptions","organizations_url":"https://api.github.com/users/vinayhfs/orgs","repos_url":"https://api.github.com/users/vinayhfs/repos","events_url":"https://api.github.com/users/vinayhfs/events{/privacy}","received_events_url":"https://api.github.com/users/vinayhfs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TobiasHennig/nativescript-toast/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/TobiasHennig/nativescript-toast/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/TobiasHennig/nativescript-toast/labels/unit-testing","name":"unit-testing","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"hypery2k","id":979121,"avatar_url":"https://avatars.githubusercontent.com/u/979121?v=3","gravatar_id":"","url":"https://api.github.com/users/hypery2k","html_url":"https://github.com/hypery2k","followers_url":"https://api.github.com/users/hypery2k/followers","following_url":"https://api.github.com/users/hypery2k/following{/other_user}","gists_url":"https://api.github.com/users/hypery2k/gists{/gist_id}","starred_url":"https://api.github.com/users/hypery2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypery2k/subscriptions","organizations_url":"https://api.github.com/users/hypery2k/orgs","repos_url":"https://api.github.com/users/hypery2k/repos","events_url":"https://api.github.com/users/hypery2k/events{/privacy}","received_events_url":"https://api.github.com/users/hypery2k/received_events","type":"User","site_admin":false},"assignees":[{"login":"hypery2k","id":979121,"avatar_url":"https://avatars.githubusercontent.com/u/979121?v=3","gravatar_id":"","url":"https://api.github.com/users/hypery2k","html_url":"https://github.com/hypery2k","followers_url":"https://api.github.com/users/hypery2k/followers","following_url":"https://api.github.com/users/hypery2k/following{/other_user}","gists_url":"https://api.github.com/users/hypery2k/gists{/gist_id}","starred_url":"https://api.github.com/users/hypery2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypery2k/subscriptions","organizations_url":"https://api.github.com/users/hypery2k/orgs","repos_url":"https://api.github.com/users/hypery2k/repos","events_url":"https://api.github.com/users/hypery2k/events{/privacy}","received_events_url":"https://api.github.com/users/hypery2k/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/TobiasHennig/nativescript-toast/milestones/1","html_url":"https://github.com/TobiasHennig/nativescript-toast/milestones/1.4.0","labels_url":"https://api.github.com/repos/TobiasHennig/nativescript-toast/milestones/1/labels","id":2073434,"number":1,"title":"1.4.0","description":"","creator":{"login":"hypery2k","id":979121,"avatar_url":"https://avatars.githubusercontent.com/u/979121?v=3","gravatar_id":"","url":"https://api.github.com/users/hypery2k","html_url":"https://github.com/hypery2k","followers_url":"https://api.github.com/users/hypery2k/followers","following_url":"https://api.github.com/users/hypery2k/following{/other_user}","gists_url":"https://api.github.com/users/hypery2k/gists{/gist_id}","starred_url":"https://api.github.com/users/hypery2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypery2k/subscriptions","organizations_url":"https://api.github.com/users/hypery2k/orgs","repos_url":"https://api.github.com/users/hypery2k/repos","events_url":"https://api.github.com/users/hypery2k/events{/privacy}","received_events_url":"https://api.github.com/users/hypery2k/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2016-10-17T06:44:04Z","updated_at":"2016-10-24T08:09:40Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-07-13T10:20:42Z","updated_at":"2016-10-24T08:09:40Z","closed_at":"2016-10-24T08:09:40Z","body":"I tried use it with angular and got a error as  (used Toast.makeText(\"Hello World\", \"long\").show();)\r\nJS: ORIGINAL EXCEPTION: Error: java.lang.NullPointerException: Attempt to invoke\r\n virtual method 'android.content.res.Resources android.content.Context.getResour\r\nces()' on a null object reference\r\nJS:     android.widget.Toast.<init>(Toast.java:101)\r\nJS:     android.widget.Toast.makeText(Toast.java:250)\r\nJS:     com.tns.Runtime.callJSMethodNative(Native Method)\r\nJS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)\r\nJS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)\r\nJS:     com.tns.Runtime.callJSMethod(Runtime.java:712)\r\nJS:     com.tns.Runtime.callJSMethod(Runtime.java:693)\r\nJS:     com.tns.Runtime.callJSMethod(Runtime.java:683)\r\nJS:     com.tns.gen.android.view.View_OnClickListener.onClick(View_OnClickListen\r\ner.java:11)\r\nJS:     android.view.View.performClick(View.java:4756)\r\nJS:     android.view.View$PerformClick.run(View.java:19749)\r\nJS:     android.os.Handler.handleCallback(Handler.java:739)\r\nJS:     android.os.Handler.dispatchMessage(Handler.java:95)\r\nJS:     android.os.Looper.loop(Looper.java:135)\r\nJS:     android.app.ActivityThread.main(ActivityThread.java:5221)\r\nJS:     java.lang.reflect.Method.invoke(Native Method)\r\nJS:     java.lang.reflect.Method.invoke(Method.java:372)\r\nJS:     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.ja\r\nva:899)\r\nJS:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\nJS: ORIGINAL STACKTRACE:\r\nJS: Error: java.lang.NullPointerException: Attempt to invoke virtual method 'and\r\nroid.content.res.Resources android.content.Context.getResources()' on a null obj\r\nect reference\r\nJS:     android.widget.Toast.<init>(Toast.java:101)\r\nJS:     android.widget.Toast.makeText(Toast.java:250)\r\nJS:     com.tns.Runtime.callJSMethodNative(Native Method)\r\nJS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)\r\nJS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)\r\nJS:     com.tns.Runtime.callJSMethod(Runtime.java:712)\r\nJS:     com.tns.Runtime.callJSMethod(Runtime.java:693)\r\nJS:     com.tns.Runtime.callJSMethod(Runtime.java:683)\r\nJS:     com.tns.gen.android.view.View_OnClickListener.onClick(View_OnClickListen\r\ner.java:11)\r\nJS:     android.view.View.performClick(View.java:4756)\r\nJS:     android.view.View$PerformClick.run(View.java:19749)\r\nJS:     android.os.Handler.handleCallback(Handler.java:739)\r\nJS:     android.os.Handler.dispatchMessage(Handler.java:95)\r\nJS:     android.os.Looper.loop(Looper.java:135)\r\nJS:     android.app.ActivityThread.main(ActivityThread.java:5221)\r\nJS:     java.lang.reflect.Method.invoke(Native Method)\r\nJS:     java.lang.reflect.Method.invoke(Method.java:372)\r\nJS:     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.ja\r\nva:899)\r\nJS:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\nJS:     at Error (native)\r\nJS:     at Object.makeText (/data/data/org.nativescript.NsAgTest/files/app/tns_m\r\nodules/nativescript-toast/toast.js:13:18)\r\nJS:     at TestRouteComponent.showToast (/data/data/org.nativescript.NsAgTest/fi\r\nles/app/pages/testroute.Component.js:10:15)\r\nJS:     at DebugAppView._View_TestRouteComponent0._handle_tap_9_0 (TestRouteComp\r\nonent.template.js:124:28)\r\nJS:     at Object.<anonymous> (/data/data/org.nativescript.NsAgTest/files/app/tn\r\ns_modules/@angular/core/src/linker/view.js:366:24)\r\nJS:     at ZoneDelegate.invoke (/data/data/org.nativescript.NsAgTest/files/app/t\r\nns_modules/zone.js/dist/zone-node.js:281:29)\r\nJS:     at Object.NgZoneImpl.inner.inner.fork.onInvoke (/data/data/org.nativescr\r\nipt.NsAgTest/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js:46:41)\r\n\r\nJS:     at ZoneDelegate.invoke (/data/data/org.nativescript.NsAgTest/files/app/t\r\nns_modules/zone.js/dist/zone-node.js:280:35)\r\nJS:     at Zone.runGuarded (/data/data/org.nativescript.NsAgTest/files/app/tns_m\r\nodules/zone.js/dist/zone-node.js:188:48)\r\nJS:     at Object.callback (/data/data/org.nativescript.NsAgTest/files/app/tns_m\r\nodules/zone.js/dist/zone-node.js:164:30)\r\nJS: ERROR CONTEXT:\r\nJS: [object Object]\r\nW/System.err(19324):     com.tns.Runtime.callJSMethodNative(Native Method)\r\nW/System.err(19324):     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java\r\n:861)\r\nW/System.err(19324):     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)\r\nW/System.err(19324):     com.tns.Runtime.callJSMethod(Runtime.java:712)\r\nW/System.err(19324):     com.tns.Runtime.callJSMethod(Runtime.java:693)\r\nW/System.err(19324):     com.tns.Runtime.callJSMethod(Runtime.java:683)\r\nW/System.err(19324):     com.tns.Runtime.callJSMethodNative(Native Method)\r\nW/System.err(19324):     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java\r\n:861)\r\nW/System.err(19324):     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)\r\nW/System.err(19324):     com.tns.Runtime.callJSMethod(Runtime.java:712)\r\nW/System.err(19324):     com.tns.Runtime.callJSMethod(Runtime.java:693)\r\nW/System.err(19324):     com.tns.Runtime.callJSMethod(Runtime.java:683)\r\nW/System.err(19324):    at com.tns.Runtime.callJSMethodNative(Native Method)\r\nW/System.err(19324):    at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.ja\r\nva:861)\r\nW/System.err(19324):    at com.tns.Runtime.callJSMethodImpl(Runtime.java:726)\r\nW/System.err(19324):    at com.tns.Runtime.callJSMethod(Runtime.java:712)\r\nW/System.err(19324):    at com.tns.Runtime.callJSMethod(Runtime.java:693)\r\nW/System.err(19324):    at com.tns.Runtime.callJSMethod(Runtime.java:683)\r\n"}}
{"actor":{"display_login":"hypery2k"}}