Has anyone figured out what's causing this yet btw...
# exposed
r
Has anyone figured out what's causing this yet btw? The column is definitely not nullable
Copy code
java.lang.NullPointerException
	at org.jetbrains.exposed.dao.Entity.lookup(Entity.kt:194)
	at org.jetbrains.exposed.dao.Entity.getValue(Entity.kt:174)
	at com.company.user.data.ProfileRow.isPrivate(ProfileRow.kt:29)
p
https://github.com/JetBrains/Exposed/blob/master/exposed-dao/src/main/kotlin/org/jetbrains/exposed/dao/Entity.kt#L194
Copy code
else -> readValues[this]!!
readValues
is a
ResultRow
This implies it is coming back from the DB as null. I understand that the expectation is the column is non-nullable, but have you captured the SQL being executed and explored the query / response manually to validate the claim?
r
Yes, I am 100% certain the data is not null. It's not just this column, this happens on several other non-nullable columns too. This is transative error so we handle it by retrying the same query when this happens. It is still unexplained and unnecessary
c
Has anyone figured out what's causing this yet btw?
Is this regarding a long-standing issue on GitHub or a previous slack thread? If so, could you provide a link to that please? If not, any table mappings, a reproducible example, or a sample repo would be appreciated. Or please feel free to open a Youtrack issue so we can start looking into it for you.
r