The sale object passed from the background is sale = null
${sale.warrantyPeriod}
You will be prompted that warrantyperiod cannot be found. Change it to the following:
th:value="${sale?.warrantyPeriod}"
If the object is empty, the output is empty; if the object exists, the output property value.
Read More:
- When using freemaker template to get values, an error is reported when the attribute is empty
- SqlNullValueException: Data is Null. This method or property cannot be called on Null values.
- nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property
- TypeError: ‘numpy.int64′ object is not iterable ,’int’ object is not iterable
- The JSON object is converted into a formdata object, and the formdata object is converted into a JSON object
- C ා programming encountered an object reference is required for the non-static field, method, or property error
- Object is JSON, and JSON is converted to object
- How to Use the object of ES6 to clear the object value
- R language error:‘ namespace:lazyeval There is no exit_ The object is eval
- error TS2339:Property ‘length’ does not exist on type ‘object’
- TypeError: ‘int’ object is not iterable
- Ubuntu: Failed to initialize compiler: object java.lang.Object In compiler mirror not found
- Type error: object (…) is not a function
- Type error at XXX ‘set’ object is not reversible
- CentOS solves the problem of modulenotfounderror when salt calls python3 script remotely, and solves the problem that PIP3 module cannot be shared by different users
- To solve the problem of C # calling excel interface error, prompt: the COM object of Microsoft. Office. Interop. Excel. Applicationclass is forcibly converted to the interface type “Microsoft. Offi”
- Solution of running error reporting attributeerror: ‘rectangle’ object has no property ‘normalized’
- TypeError: this.getOptions is not a function at Object.lessLoader
- Problem: attributeerror: ‘tensor’ object has no attribute ‘creator’
- [Vue warn]: Error in nextTick: “TypeError: Cannot read property ‘map‘ of null“