Skip to content

Commit

Permalink
Add temporary workaround for a bug in mastodon-core
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhahmann committed Dec 5, 2024
1 parent 27eaf4f commit 32d8d5d
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,16 @@ public void setParams( final boolean includeName, final boolean includeTag, fina
private String getTagLabel()
{
Spot ref = model.getGraph().vertexRef();
String tagLabel = LegacyTagSetUtils.getTagLabel( model, branchSpot, tagSet, ref );
String tagLabel = null;
try
{
// TODO: this try-catch block is a workaround. It will not be needed anymore after mastodon-core beta-34
tagLabel = LegacyTagSetUtils.getTagLabel( model, branchSpot, tagSet, ref );
}
catch ( NullPointerException e )
{
// happens, when the branchSpot is not in the model anymore
}
model.getGraph().releaseRef( ref );
if ( tagLabel == null )
tagLabel = "";
Expand Down

0 comments on commit 32d8d5d

Please sign in to comment.