add null check to SuggestHelper
This commit is contained in:
parent
2187c930ed
commit
cafc73e8b8
1 changed files with 8 additions and 4 deletions
|
@ -316,12 +316,16 @@ public class SuggestHelper {
|
|||
}
|
||||
|
||||
final List<String> labelList = new ArrayList<>();
|
||||
for (final String label : tags) {
|
||||
labelList.add(label);
|
||||
if (tags != null) {
|
||||
for (final String label : tags) {
|
||||
labelList.add(label);
|
||||
}
|
||||
}
|
||||
final List<String> roleList = new ArrayList<>();
|
||||
for (final String permission : permissions) {
|
||||
roleList.add(permission);
|
||||
if (permissions != null) {
|
||||
for (final String permission : permissions) {
|
||||
roleList.add(permission);
|
||||
}
|
||||
}
|
||||
|
||||
suggester.indexer().addElevateWord(
|
||||
|
|
Loading…
Add table
Reference in a new issue