spring-framework / org.springframework.beans / NullValueInNestedPathException

NullValueInNestedPathException

open class NullValueInNestedPathException : InvalidPropertyException

Exception thrown when navigation of a valid nested property path encounters a NullPointerException.

For example, navigating "spouse.age" could fail because the spouse property of the target object has a null value.

Author
Rod Johnson

Author
Juergen Hoeller

Constructors

<init>

NullValueInNestedPathException(beanClass: Class<*>, propertyName: String)
NullValueInNestedPathException(beanClass: Class<*>, propertyName: String, msg: String)
NullValueInNestedPathException(beanClass: Class<*>, propertyName: String, msg: String, cause: Throwable)

Create a new NullValueInNestedPathException.