Empty strings are considered null by oracle. https://github.com/owncloud/core/pull/2389 uses the big hammer but just hides the problem. I think the cache stores '' for storage root nodes. I assume other columns with this problem will surface too. For now, this will allow the file scan to complete successfully.