{"action":"created","issue":{"url":"https://api.github.com/repos/glomadrian/material-animated-switch/issues/4","labels_url":"https://api.github.com/repos/glomadrian/material-animated-switch/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/glomadrian/material-animated-switch/issues/4/comments","events_url":"https://api.github.com/repos/glomadrian/material-animated-switch/issues/4/events","html_url":"https://github.com/glomadrian/material-animated-switch/issues/4","id":89103782,"number":4,"title":"Getting error when trying to programmatic set it as checked or unchecked. ","user":{"login":"EugeneHoran","id":7454787,"avatar_url":"https://avatars.githubusercontent.com/u/7454787?v=3","gravatar_id":"","url":"https://api.github.com/users/EugeneHoran","html_url":"https://github.com/EugeneHoran","followers_url":"https://api.github.com/users/EugeneHoran/followers","following_url":"https://api.github.com/users/EugeneHoran/following{/other_user}","gists_url":"https://api.github.com/users/EugeneHoran/gists{/gist_id}","starred_url":"https://api.github.com/users/EugeneHoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugeneHoran/subscriptions","organizations_url":"https://api.github.com/users/EugeneHoran/orgs","repos_url":"https://api.github.com/users/EugeneHoran/repos","events_url":"https://api.github.com/users/EugeneHoran/events{/privacy}","received_events_url":"https://api.github.com/users/EugeneHoran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/glomadrian/material-animated-switch/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"glomadrian","id":5353046,"avatar_url":"https://avatars.githubusercontent.com/u/5353046?v=3","gravatar_id":"","url":"https://api.github.com/users/glomadrian","html_url":"https://github.com/glomadrian","followers_url":"https://api.github.com/users/glomadrian/followers","following_url":"https://api.github.com/users/glomadrian/following{/other_user}","gists_url":"https://api.github.com/users/glomadrian/gists{/gist_id}","starred_url":"https://api.github.com/users/glomadrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glomadrian/subscriptions","organizations_url":"https://api.github.com/users/glomadrian/orgs","repos_url":"https://api.github.com/users/glomadrian/repos","events_url":"https://api.github.com/users/glomadrian/events{/privacy}","received_events_url":"https://api.github.com/users/glomadrian/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-06-17T19:28:10Z","updated_at":"2015-08-04T07:43:45Z","closed_at":"2015-07-02T18:22:53Z","body":"Getting an error when calling .check(), unCheck(); \r\n\r\n\r\n\t06-17 15:24:41.684    4347-4347/? E/AndroidRuntime﹕ FATAL EXCEPTION: main\r\n\t\tProcess: com.eugene.fithealthmaingit, PID: 4347\r\n\t\tjava.lang.RuntimeException: Unable to start activity ComponentInfo{com.eugene.fithealthmaingit/com.eugene.fithealthmaingit.UI.SaveSearchAddItemActivityMain}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.animation.ValueAnimator.reverse()' on a null object reference\r\n\t\t\t\tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)\r\n\t\t\t\tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)\r\n\t\t\t\tat android.app.ActivityThread.access$800(ActivityThread.java:144)\r\n\t\t\t\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)\r\n\t\t\t\tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n\t\t\t\tat android.os.Looper.loop(Looper.java:135)\r\n\t\t\t\tat android.app.ActivityThread.main(ActivityThread.java:5221)\r\n\t\t\t\tat java.lang.reflect.Method.invoke(Native Method)\r\n\t\t\t\tat java.lang.reflect.Method.invoke(Method.java:372)\r\n\t\t\t\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\n\t\t\t\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\n\t\t Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.animation.ValueAnimator.reverse()' on a null object reference\r\n\t\t\t\tat com.github.glomadrian.materialanimatedswitch.painter.BallPainter.setState(BallPainter.java:111)\r\n\t\t\t\tat com.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch.setState(MaterialAnimatedSwitch.java:139)\r\n\t\t\t\tat com.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch.unCheck(MaterialAnimatedSwitch.java:179)\r\n\t\t\t\tat com.eugene.fithealthmaingit.UI.SaveSearchItemFragment.findViewsById(SaveSearchItemFragment.java:250)\r\n\t\t\t\tat com.eugene.fithealthmaingit.UI.SaveSearchItemFragment.onCreateView(SaveSearchItemFragment.java:150)\r\n\t\t\t\tat android.support.v4.app.Fragment.performCreateView(Fragment.java:1789)\r\n\t\t\t\tat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:955)\r\n\t\t\t\tat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1138)\r\n\t\t\t\tat android.support.v4.app.BackStackRecord.run(BackStackRecord.java:740)\r\n\t\t\t\tat android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1501)\r\n\t\t\t\tat android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:551)\r\n\t\t\t\tat android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1220)\r\n\t\t\t\tat android.app.Activity.performStart(Activity.java:5949)\r\n\t\t\t\tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2261)\r\n\t            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)\r\n\t            at android.app.ActivityThread.access$800(ActivityThread.java:144)\r\n\t            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)\r\n\t            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n\t            at android.os.Looper.loop(Looper.java:135)\r\n\t            at android.app.ActivityThread.main(ActivityThread.java:5221)\r\n\t            at java.lang.reflect.Method.invoke(Native Method)\r\n\t            at java.lang.reflect.Method.invoke(Method.java:372)\r\n\t            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\n\t            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)"},"comment":{"url":"https://api.github.com/repos/glomadrian/material-animated-switch/issues/comments/127509180","html_url":"https://github.com/glomadrian/material-animated-switch/issues/4#issuecomment-127509180","issue_url":"https://api.github.com/repos/glomadrian/material-animated-switch/issues/4","id":127509180,"user":{"login":"hongzhou85","id":4978166,"avatar_url":"https://avatars.githubusercontent.com/u/4978166?v=3","gravatar_id":"","url":"https://api.github.com/users/hongzhou85","html_url":"https://github.com/hongzhou85","followers_url":"https://api.github.com/users/hongzhou85/followers","following_url":"https://api.github.com/users/hongzhou85/following{/other_user}","gists_url":"https://api.github.com/users/hongzhou85/gists{/gist_id}","starred_url":"https://api.github.com/users/hongzhou85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongzhou85/subscriptions","organizations_url":"https://api.github.com/users/hongzhou85/orgs","repos_url":"https://api.github.com/users/hongzhou85/repos","events_url":"https://api.github.com/users/hongzhou85/events{/privacy}","received_events_url":"https://api.github.com/users/hongzhou85/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T07:43:45Z","updated_at":"2015-08-04T07:43:45Z","body":"java.lang.RuntimeException: Unable to start activity ComponentInfo{co.yproject.bys/co.yproject.bys.beautyme.SettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.animation.ValueAnimator.start()' on a null object reference\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2693)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758)\r\n            at android.app.ActivityThread.access$900(ActivityThread.java:177)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:145)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5942)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)\r\n     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.animation.ValueAnimator.start()' on a null object reference\r\n            at com.github.glomadrian.materialanimatedswitch.painter.BallPainter.setState(BallPainter.java:108)\r\n            at com.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch.setState(MaterialAnimatedSwitch.java:139)\r\n            at com.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch.doActionDown(MaterialAnimatedSwitch.java:164)\r\n            at com.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch.toggle(MaterialAnimatedSwitch.java:178)"}}