Skip to content

Commit

Permalink
fixed NPE issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mgireesha committed May 6, 2024
1 parent 4e96ff1 commit c251811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/gmt/gp/services/LibraryService.java
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ public Library getLibraryFromFile(Tag tag, AudioFile audioF, File mpFile) throws
if (!tag.getFirst(FieldKey.COMPOSER).equals("") && tag.getFirst(FieldKey.COMPOSER) != null) {
library.setComposer(tag.getFirst(FieldKey.COMPOSER));
} else {
if (!library.getAlbumArtist().equals(GP_CONSTANTS.UNKNOWN_LABEL)) {
if (library.getAlbumArtist()!=null && !library.getAlbumArtist().equals(GP_CONSTANTS.UNKNOWN_LABEL)) {
library.setComposer(library.getAlbumArtist());
} else {
library.setComposer(GP_CONSTANTS.UNKNOWN_LABEL);
Expand Down

0 comments on commit c251811

Please sign in to comment.