No Jira issue. Fixed a null pointer exception when I data property has no rangeDatatypeUri.
This commit is contained in:
parent
e442dbd7cc
commit
d8aaecd4fd
1 changed files with 4 additions and 1 deletions
|
@ -98,7 +98,10 @@ public class DefaultDataPropertyFormGenerator extends BaseEditConfigurationGener
|
|||
literalField.setValidators(list( "nonempty" ));
|
||||
editConfiguration.setN3Required(Arrays.asList( dataPropN3 ));
|
||||
}
|
||||
// if the property has a rangeDatatypeUri, validate it
|
||||
if ( rangeDatatypeUri != null ) {
|
||||
editConfiguration.addValidator(new DefaultDataPropertyFormValidator(rangeDatatypeUri, vreq));
|
||||
}
|
||||
//prepare
|
||||
prepare(vreq, editConfiguration);
|
||||
return editConfiguration;
|
||||
|
|
Loading…
Add table
Reference in a new issue