File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
library/src/main/java/com/proxerme/library/connection Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ public String getName() {
191
191
@ NonNull
192
192
@ GenreParameter .Genre
193
193
public String [] getGenres () {
194
- if (genres .isEmpty ()) {
194
+ if (genres == null || genres .isEmpty ()) {
195
195
return new String [0 ];
196
196
} else {
197
197
return genres .split (DELIMITER );
@@ -207,7 +207,7 @@ public String[] getGenres() {
207
207
@ NonNull
208
208
@ FskParameter .FskConstraint
209
209
public String [] getFsk () {
210
- if (fsk .isEmpty ()) {
210
+ if (fsk == null || fsk .isEmpty ()) {
211
211
return new String [0 ];
212
212
} else {
213
213
return fsk .split (DELIMITER );
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ public String getName() {
148
148
@ NonNull
149
149
@ Genre
150
150
public String [] getGenres () {
151
- if (genres .isEmpty ()) {
151
+ if (genres == null || genres .isEmpty ()) {
152
152
return new String [0 ];
153
153
} else {
154
154
return genres .split (DELIMITER );
@@ -164,7 +164,7 @@ public String[] getGenres() {
164
164
@ NonNull
165
165
@ FskConstraint
166
166
public String [] getFsk () {
167
- if (fsk .isEmpty ()) {
167
+ if (fsk == null || fsk .isEmpty ()) {
168
168
return new String [0 ];
169
169
} else {
170
170
return fsk .split (DELIMITER );
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ public String getName() {
175
175
@ NonNull
176
176
@ GenreParameter .Genre
177
177
public String [] getGenres () {
178
- if (genres .isEmpty ()) {
178
+ if (genres == null || genres .isEmpty ()) {
179
179
return new String [0 ];
180
180
} else {
181
181
return genres .split (DELIMITER );
@@ -191,7 +191,7 @@ public String[] getGenres() {
191
191
@ NonNull
192
192
@ FskParameter .FskConstraint
193
193
public String [] getFsk () {
194
- if (fsk .isEmpty ()) {
194
+ if (fsk == null || fsk .isEmpty ()) {
195
195
return new String [0 ];
196
196
} else {
197
197
return fsk .split (DELIMITER );
@@ -297,7 +297,7 @@ public int getLicense() {
297
297
@ NonNull
298
298
@ GeneralLanguageParameter .GeneralLanguage
299
299
public String [] getLanguages () {
300
- if (languages .isEmpty ()) {
300
+ if (languages == null || languages .isEmpty ()) {
301
301
return new String [0 ];
302
302
} else {
303
303
return languages .split (LANGUAGE_DELIMITER );
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public String getName() {
125
125
@ NonNull
126
126
@ Genre
127
127
public String [] getGenres () {
128
- if (genres .isEmpty ()) {
128
+ if (genres == null || genres .isEmpty ()) {
129
129
return new String [0 ];
130
130
} else {
131
131
return genres .split (" " );
@@ -206,7 +206,7 @@ public float getRating() {
206
206
@ NonNull
207
207
@ SubDubLanguage
208
208
public String [] getLanguages () {
209
- if (languages .isEmpty ()) {
209
+ if (languages == null || languages .isEmpty ()) {
210
210
return new String [0 ];
211
211
} else {
212
212
return languages .split ("," );
You can’t perform that action at this time.
0 commit comments