-
-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE on validate() #25
Comments
let me check |
What if I close submission tag in above sample XML and then validate? |
closing as no update. Please reopen if you fell there is any issue. |
So perhaps I misunderstand what |
It should return return false only. if it is throwing error there may be some case to cover. |
Right, so that's exactly what's happening. I simplified the case:
|
I got your point now. I have fixed it. Sorry for the confusion. |
No problem; thanks! |
validate('<submission xmlns="http://opendatakit.org/submissions" xmlns:orx="http://openrosa.org/xforms"><data><data id="build_Untitled-Form_1424401835" instanceID="uuid:70ab6d82-110a-4ba6-86ac-071d698fd3a3" submissionDate="2015-02-20T16:07:51.145Z" isComplete="true" markedAsCompleteDate="2015-02-20T16:07:51.145Z"><orx:meta><orx:instanceID>uuid:74ab6d82-110a-4ba6-86ac-071d698fd3a3</orx:instanceID></orx:meta><name>Trevor</name><age>31</age><birthday>2014-07-01</birthday><location/><photo>1424448426991.jpg</photo><favorite_color>blue</favorite_color></data></data>');
On version 2.7.4, this fails for me on
validator.js:76
with an NPE on the reference to index 0.The text was updated successfully, but these errors were encountered: