[KULRICE-7053] spring expression error on refresh Created: 02/Apr/12  Updated: 03/Apr/13  Resolved: 13/Apr/12

Status: Closed
Project: Kuali Rice Development
Component/s: Configuration Management
Affects Version/s: None
Fix Version/s: 2.2
Security Level: Public (Public: Anyone can view)

Type: Bug Fix Priority: Major
Reporter: Venkat PremChandran (Inactive) Assignee: Eric Njogu (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Rice Module:
KAI Review Status: Not Required
KTI Review Status: Not Required


A null pointer expression occurs when an expression is used for the disabled property:

Reported by Bob Hurt via rice.usergroup.krad@kuali.org:

I have a TableCollectionSection and one of its items is:

<bean parent="Uif-InputField" p:propertyName="startTimeAmPm"
<property name="control">
<bean parent="Uif-DropdownControl"



This field is a dropdown for selecting "am" or "pm", and should be disabled when the field directly in front of it, startTime, is empty. The control's "disabled" property works when the page is initially displayed, but when startTime is changed I get the following runtime exception:

java.lang.RuntimeException: Exception evaluating expression: #empty(.startTime) at
< stacktrace left out >

Comment by Eric Njogu (Inactive) [ 05/Apr/12 ]

Looking at org.kuali.rice.krad.uif.util.ExpressionUtils#getLinePathPrefixValue, the prefix #lp is replaced by a blank string when a collection group is not found in the component's context. Longer code extracts might help to shed light on this.

Comment by Venkat PremChandran (Inactive) [ 13/Apr/12 ]

Thanks Eric for this fix. I'm hoping this should fix issues related to refreshWhenChanged() when used within a collection

Generated at Sat Jun 19 14:03:01 CDT 2021 using JIRA 7.0.11#70121-sha1:19d24976997c1d95f06f3e327e087be0b71f28d4.