Skip to content

chimera: fix reading of empty tags#8095

Open
kofemann wants to merge 1 commit into11.2from
issue8071-11.2
Open

chimera: fix reading of empty tags#8095
kofemann wants to merge 1 commit into11.2from
issue8071-11.2

Conversation

@kofemann
Copy link
Copy Markdown
Member

Motivation:
if tag is only created without any content then ResultSet#getBinaryStream return null as a stream which will trigger NPE.

Modification:
Update org.dcache.chimera.FsSqlDriver#getTag to check for null before accessing the stream.

Result:
NPE is fixed.

Fixes: #8071
Acked-by: Dmitry Litvintsev
Target: master, 11.2
Require-book: no
Require-notes: yes
(cherry picked from commit 6682eda)

Motivation:
if tag is only created without any content then ResultSet#getBinaryStream
return `null` as a stream which will trigger NPE.

Modification:
Update org.dcache.chimera.FsSqlDriver#getTag to check for null before
accessing the stream.

Result:
NPE is fixed.

Fixes: #8071
Acked-by: Dmitry Litvintsev
Target: master, 11.2
Require-book: no
Require-notes: yes
(cherry picked from commit 6682eda)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant