F43nd1r / Acrarium

A Backend for ACRA written in Kotlin using Spring Boot, Vaadin and MySQL
Apache License 2.0
196 stars 51 forks source link

NullPointerException #477

Open Koitharu opened 9 months ago

Koitharu commented 9 months ago

After some actions (I suppose mostly after removing versions via Admin tab) Acrarium stop works with Internal server error log

Looks like source of this error is in bug table in database: column latest_version_flavor in database is nullable, but corresponding field in the BugStats class is non-nullable.

Executing delete from bug where latest_version_flavor is null; in database solve this issue

I tried to fix it, however I'm not sure if it is the right way. Version: 2.0.0-beta07

F43nd1r commented 5 months ago

A bug without a latest version should never exist (see here), so your fix is not the right way. I'd need a clear reproducer to be able to work on this issue.