Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Multiple exceptions when event has no config at all #134

Open
jljouannic opened this issue Oct 29, 2016 · 1 comment
Open

Multiple exceptions when event has no config at all #134

jljouannic opened this issue Oct 29, 2016 · 1 comment

Comments

@jljouannic
Copy link

When event has nothing but an id in database, trying to access the app for this id gives various exceptions depending on the missing config parameter.

@jljouannic
Copy link
Author

if date, decision_date… are NULL in database:

java.lang.NullPointerException: null
    at java.util.Calendar.setTime(Calendar.java:1770)
    at org.apache.commons.lang.time.FastDateFormat.format(FastDateFormat.java:819)
    at io.cfp.dto.ApplicationSettings.<init>(ApplicationSettings.java:47)
    at io.cfp.controller.ApplicationController.getApplicationSettings(ApplicationController.java:69)
    at io.cfp.controller.ApplicationController$$FastClassBySpringCGLIB$$62265d43.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:651)
    at io.cfp.controller.ApplicationController$$EnhancerBySpringCGLIB$$485f0f35.getApplicationSettings(<generated>)

if open is NULL in database:

org.springframework.orm.jpa.JpaSystemException: Null value was assigned to a property of primitive type setter of io.cfp.entity.Event.open; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of io.cfp.entity.Event.open

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant