KamoCRM

Add null checks and validation in CustomFormService createForm/updateForm

Fixkamo-shared-library
Shipped
29 நவம்பர், 2025 அன்று 8:08 PM UTC
Author
snadjafinia
Commit
bc3b876

- Add null/empty checks for fieldId before calling trim().toLowerCase() to prevent NullPointerException - Add comprehensive validation for required fields (fieldType, title, fieldId) with clear error messages - Add field ID format validation in createForm/updateForm methods as double-check - Improve error messages to include field context - Trim title field as well for consistency Fixes issue where form creation fails with NullPointerException when fieldId is null or empty.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing