infobox manager: check infobox isn't null
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.client.ui.overlay.infobox;
|
package net.runelite.client.ui.overlay.infobox;
|
||||||
|
|
||||||
|
import com.google.common.base.Preconditions;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
@@ -40,6 +41,7 @@ public class InfoBoxManager
|
|||||||
|
|
||||||
public void addInfoBox(InfoBox infoBox)
|
public void addInfoBox(InfoBox infoBox)
|
||||||
{
|
{
|
||||||
|
Preconditions.checkNotNull(infoBox);
|
||||||
log.debug("Adding InfoBox {}", infoBox);
|
log.debug("Adding InfoBox {}", infoBox);
|
||||||
infoBoxes.add(infoBox);
|
infoBoxes.add(infoBox);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user