{"action":"created","issue":{"url":"https://api.github.com/repos/ragunathjawahar/android-saripaar/issues/101","labels_url":"https://api.github.com/repos/ragunathjawahar/android-saripaar/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/ragunathjawahar/android-saripaar/issues/101/comments","events_url":"https://api.github.com/repos/ragunathjawahar/android-saripaar/issues/101/events","html_url":"https://github.com/ragunathjawahar/android-saripaar/issues/101","id":98591304,"number":101,"title":"NullPointerException of mValidationContext","user":{"login":"edwardaa","id":8274162,"avatar_url":"https://avatars.githubusercontent.com/u/8274162?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardaa","html_url":"https://github.com/edwardaa","followers_url":"https://api.github.com/users/edwardaa/followers","following_url":"https://api.github.com/users/edwardaa/following{/other_user}","gists_url":"https://api.github.com/users/edwardaa/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardaa/subscriptions","organizations_url":"https://api.github.com/users/edwardaa/orgs","repos_url":"https://api.github.com/users/edwardaa/repos","events_url":"https://api.github.com/users/edwardaa/events{/privacy}","received_events_url":"https://api.github.com/users/edwardaa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"ragunathjawahar","id":1141970,"avatar_url":"https://avatars.githubusercontent.com/u/1141970?v=3","gravatar_id":"","url":"https://api.github.com/users/ragunathjawahar","html_url":"https://github.com/ragunathjawahar","followers_url":"https://api.github.com/users/ragunathjawahar/followers","following_url":"https://api.github.com/users/ragunathjawahar/following{/other_user}","gists_url":"https://api.github.com/users/ragunathjawahar/gists{/gist_id}","starred_url":"https://api.github.com/users/ragunathjawahar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ragunathjawahar/subscriptions","organizations_url":"https://api.github.com/users/ragunathjawahar/orgs","repos_url":"https://api.github.com/users/ragunathjawahar/repos","events_url":"https://api.github.com/users/ragunathjawahar/events{/privacy}","received_events_url":"https://api.github.com/users/ragunathjawahar/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-08-02T07:40:34Z","updated_at":"2015-08-02T13:44:41Z","closed_at":"2015-08-02T13:30:40Z","body":"I am using saripaar `v2.0.0`, an exception ocurrs since `mValidationContext` was not instantiated:\r\n```\r\nCaused by: java.lang.NullPointerException\r\n  at com.mobsandgeeks.saripaar.Validator.createRulesSafelyAndLazily(Validator.java:460)\r\n  at com.mobsandgeeks.saripaar.Validator.put(Validator.java:401)\r\n```\r\nConsider following example without annotated fields:\r\n```java\r\nprivate TextView textView;\r\nprivate Validator validator;\r\n\r\n@Override\r\npublic void onCreate(Bundle savedInstanceState) {\r\n    super.onCreate();\r\n\r\n    textView = findViewById(R.id.text);\r\n    validator = new Validator(this);\r\n    validator.put(textView, new QuickRule<TextView>() {\r\n        @Override\r\n        public boolean isValid(TextView view) {\r\n            return false;\r\n        }\r\n\r\n        @Override\r\n        public String getMessage(Context context) {\r\n            return null;\r\n        }\r\n    });\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ragunathjawahar/android-saripaar/issues/comments/127025252","html_url":"https://github.com/ragunathjawahar/android-saripaar/issues/101#issuecomment-127025252","issue_url":"https://api.github.com/repos/ragunathjawahar/android-saripaar/issues/101","id":127025252,"user":{"login":"edwardaa","id":8274162,"avatar_url":"https://avatars.githubusercontent.com/u/8274162?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardaa","html_url":"https://github.com/edwardaa","followers_url":"https://api.github.com/users/edwardaa/followers","following_url":"https://api.github.com/users/edwardaa/following{/other_user}","gists_url":"https://api.github.com/users/edwardaa/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardaa/subscriptions","organizations_url":"https://api.github.com/users/edwardaa/orgs","repos_url":"https://api.github.com/users/edwardaa/repos","events_url":"https://api.github.com/users/edwardaa/events{/privacy}","received_events_url":"https://api.github.com/users/edwardaa/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T13:44:41Z","updated_at":"2015-08-02T13:44:41Z","body":"Thanks for your hard work! it works like a charm"}}