{"action":"created","issue":{"url":"https://api.github.com/repos/vinaygaba/CreditCardView/issues/6","labels_url":"https://api.github.com/repos/vinaygaba/CreditCardView/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/vinaygaba/CreditCardView/issues/6/comments","events_url":"https://api.github.com/repos/vinaygaba/CreditCardView/issues/6/events","html_url":"https://github.com/vinaygaba/CreditCardView/issues/6","id":91237883,"number":6,"title":"NPE on blur if no card number entered","user":{"login":"biddster","id":995967,"avatar_url":"https://avatars.githubusercontent.com/u/995967?v=3","gravatar_id":"","url":"https://api.github.com/users/biddster","html_url":"https://github.com/biddster","followers_url":"https://api.github.com/users/biddster/followers","following_url":"https://api.github.com/users/biddster/following{/other_user}","gists_url":"https://api.github.com/users/biddster/gists{/gist_id}","starred_url":"https://api.github.com/users/biddster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biddster/subscriptions","organizations_url":"https://api.github.com/users/biddster/orgs","repos_url":"https://api.github.com/users/biddster/repos","events_url":"https://api.github.com/users/biddster/events{/privacy}","received_events_url":"https://api.github.com/users/biddster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vinaygaba/CreditCardView/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"vinaygaba","id":4281910,"avatar_url":"https://avatars.githubusercontent.com/u/4281910?v=3","gravatar_id":"","url":"https://api.github.com/users/vinaygaba","html_url":"https://github.com/vinaygaba","followers_url":"https://api.github.com/users/vinaygaba/followers","following_url":"https://api.github.com/users/vinaygaba/following{/other_user}","gists_url":"https://api.github.com/users/vinaygaba/gists{/gist_id}","starred_url":"https://api.github.com/users/vinaygaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinaygaba/subscriptions","organizations_url":"https://api.github.com/users/vinaygaba/orgs","repos_url":"https://api.github.com/users/vinaygaba/repos","events_url":"https://api.github.com/users/vinaygaba/events{/privacy}","received_events_url":"https://api.github.com/users/vinaygaba/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-06-26T12:29:27Z","updated_at":"2015-07-01T09:12:23Z","closed_at":"2015-06-26T18:30:56Z","body":"I have the credit card setup to be blank so a user can input a new card. If I click in the credit card field and then click out without entering a number, I get this exception:\r\n\r\n```\r\njava.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference\r\n            at com.vinaygaba.creditcardview.CreditCardView$2.onFocusChange(CreditCardView.java:215)\r\n            at android.view.View.onFocusChanged(View.java:5206)\r\n            at android.widget.TextView.onFocusChanged(TextView.java:7913)\r\n            at android.view.View.clearFocusInternal(View.java:5089)\r\n            at android.view.View.unFocus(View.java:5122)\r\n            at android.view.ViewGroup.requestChildFocus(ViewGroup.java:658)\r\n            at android.view.View.handleFocusGainInternal(View.java:4955)\r\n            at android.view.View.requestFocusNoSearch(View.java:7678)\r\n            at android.view.View.requestFocus(View.java:7657)\r\n            at android.view.View.requestFocus(View.java:7624)\r\n            at android.view.View.requestFocus(View.java:7603)\r\n            at android.view.View.onTouchEvent(View.java:9439)\r\n            at android.widget.TextView.onTouchEvent(TextView.java:7965)\r\n            at android.view.View.dispatchTouchEvent(View.java:8471)\r\n            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)\r\n            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106)\r\n            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)\r\n            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106)\r\n            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)\r\n            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106)\r\n            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)\r\n            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106)\r\n            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)\r\n            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106)\r\n            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)\r\n            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106)\r\n            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)\r\n            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106)\r\n            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)\r\n            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106)\r\n            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)\r\n            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106)\r\n            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)\r\n            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106)\r\n            at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2369)\r\n            at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1719)\r\n            at android.app.Activity.dispatchTouchEvent(Activity.java:2742)\r\n            at android.support.v7.internal.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:59)\r\n            at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2330)\r\n            at android.view.View.dispatchPointerEvent(View.java:8666)\r\n            at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4123)\r\n            at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3989)\r\n            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)\r\n            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)\r\n            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)\r\n            at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680)\r\n            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)\r\n            at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737)\r\n            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)\r\n            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)\r\n            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)\r\n            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)\r\n            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)\r\n            at android.view.ViewRootImpl.deliverInputEvent(Vi\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/vinaygaba/CreditCardView/issues/comments/117555938","html_url":"https://github.com/vinaygaba/CreditCardView/issues/6#issuecomment-117555938","issue_url":"https://api.github.com/repos/vinaygaba/CreditCardView/issues/6","id":117555938,"user":{"login":"biddster","id":995967,"avatar_url":"https://avatars.githubusercontent.com/u/995967?v=3","gravatar_id":"","url":"https://api.github.com/users/biddster","html_url":"https://github.com/biddster","followers_url":"https://api.github.com/users/biddster/followers","following_url":"https://api.github.com/users/biddster/following{/other_user}","gists_url":"https://api.github.com/users/biddster/gists{/gist_id}","starred_url":"https://api.github.com/users/biddster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biddster/subscriptions","organizations_url":"https://api.github.com/users/biddster/orgs","repos_url":"https://api.github.com/users/biddster/repos","events_url":"https://api.github.com/users/biddster/events{/privacy}","received_events_url":"https://api.github.com/users/biddster/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T09:12:23Z","updated_at":"2015-07-01T09:12:23Z","body":"Confirming fixed in 1.0.3. "}}