Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
gamerforEA committed Aug 3, 2019
1 parent b0bcd32 commit a525379
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void renderPart(String partName)
{
for (Map.Entry<String, Integer> entry : this.lists.entrySet())
{
if (entry.getKey().equalsIgnoreCase(partName))
if (partName.equalsIgnoreCase(entry.getKey()))
{
listId = entry.getValue();
this.lists.put(partName, listId);
Expand All @@ -105,6 +105,9 @@ public void renderAllExcept(String... excludedGroupNames)
for (Map.Entry<String, Integer> entry : this.lists.entrySet())
{
String groupName = entry.getKey();
if (groupName == null)
continue;

boolean skipPart = false;

for (String excludedGroupName : excludedGroupNames)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void renderPart(String partName)
{
for (Map.Entry<String, Integer> entry : this.lists.entrySet())
{
if (entry.getKey().equalsIgnoreCase(partName))
if (partName.equalsIgnoreCase(entry.getKey()))
{
listId = entry.getValue();
this.lists.put(partName, listId);
Expand All @@ -97,6 +97,9 @@ public void renderAllExcept(String... excludedGroupNames)
for (Map.Entry<String, Integer> entry : this.lists.entrySet())
{
String groupName = entry.getKey();
if (groupName == null)
continue;

boolean skipPart = false;

for (String excludedGroupName : excludedGroupNames)
Expand Down

0 comments on commit a525379

Please sign in to comment.