NPE when retrieving empty pubsub node

Description

When an empty pubsub node is being retrieved, the CachingPubsubPersistewnceProvider attempts to cache its content. As the content is null, a nullpointerexception occurs.

Ideally, we'd store an Optional (to avoid further database calls that won't have a result), but pragmatically, simply skipping the cache would probably be good enough.

I don't think that this bug exists in code that was in a release (that's not a beta-release), as this involves code that was created for the upcoming 4.6.0 release.

Environment

None

Activity

Show:

Guus der Kinderen September 14, 2020 at 11:13 AM

Potential workaround: use DefaultPubsubPersistenceProvider directly, instead of CachingPubsubPersistenceProvider (that's backed by DefaultPubsubPersistenceProvider).

Fixed

Details

Assignee

Reporter

Ignite Forum URL

Fix versions

Affects versions

Priority

Created September 14, 2020 at 11:11 AM
Updated October 28, 2020 at 1:26 PM
Resolved September 14, 2020 at 6:07 PM