Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
6.18.0, 7.0.0-M4
-
None
-
Windows Pro x64, Oracle JDK 7u72
Description
In case of trivial model, attached to a FormComponent, PropertyValidator#createUnresolvablePropertyMessage(FormComponent<>) has no chances to find suitable model and falls into infinite loop.
IModel<?> model = component.getModel(); // Code sadly copied over from DefaultPropertyResolver while (true) { if (model == null) { break; } if (model instanceof IPropertyReflectionAwareModel) { break; } if (model instanceof IWrapModel<?>) { model = ((IWrapModel<?>)model).getWrappedModel(); continue; } // FIXME issue is here }
Attachments
Issue Links
- breaks
-
WICKET-5834 NPE in DefaultPropertyResolver
- Resolved
- is duplicated by
-
WICKET-5804 Infinite while loop in PropertyValidator#createUnresolvablePropertyMessage
- Resolved