Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid NPE while marking inline form errors

  • Loading branch information...
commit a20470f8b8475e808818bca93139b113da8c36eb 1 parent 3083f24
@davejsmith authored
View
4 src/main/java/com/trsvax/bootstrap/services/bootstrapprovider/FormProvider.java 100644 → 100755
@@ -147,9 +147,9 @@ private void markErrors(Element element) {
if (hasClass("error", element)){
controls.getContainer().addClassName("error");
Element helpInline = controls.getContainer().getElementByAttributeValue("class", "help-inline");
- helpInline.addClassName("error");
if (helpInline != null){
- helpInline.moveAfter(element);
+ helpInline.addClassName("error");
+ helpInline.moveAfter(element);
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.