A developer creates a custom component. The component dialog includes the following two fields:
The component should display the first "˜X' characters of the text entered in the "˜text' input where "˜X' is the number entered in the "˜charLimit' input. If zero, or no value, is entered in the "˜charLimit' input then the text should be unaltered. The developer creates the following Sling Model to perform the trancation:
A Null Pointer Exception occurs if NO charLimit values is set in the component dialog.
What should the developer do to resolve this issue?
chunpin
4 years, 3 months agocs1979
4 years, 9 months agoAEMSR
4 years, 10 months agokasyap1125
4 years, 6 months ago