Skip to content

Commit

Permalink
Fix cloning sdlArtwork
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKast committed Jul 13, 2022
1 parent b2e3dd1 commit b4b3945
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ private Image createImageRPC() {
*/
@Override
public SdlArtwork clone() {
return (SdlArtwork) super.clone();
SdlArtwork artwork = (SdlArtwork) super.clone();
if (artwork != null) {
artwork.imageRPC = null;
return artwork;
}
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ private Image createImageRPC() {
*/
@Override
public SdlArtwork clone() {
return (SdlArtwork) super.clone();
SdlArtwork artwork = (SdlArtwork) super.clone();
if (artwork != null) {
artwork.imageRPC = null;
return artwork;
}
return null;
}
}

0 comments on commit b4b3945

Please sign in to comment.