Skip to content

chimera: fix reading of empty tags#8095

Merged
chubnastia merged 1 commit into
11.2from
issue8071-11.2
Apr 29, 2026
Merged

chimera: fix reading of empty tags#8095
chubnastia merged 1 commit into
11.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>
@chubnastia chubnastia merged commit e67c600 into 11.2 Apr 29, 2026
1 of 3 checks passed
@chubnastia chubnastia deleted the issue8071-11.2 branch April 29, 2026 15:17
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.

2 participants