Added some assertions about null icons.

This commit is contained in:
AlgorithmX2
2014-05-07 17:21:48 -05:00
parent db1495085f
commit dd74fce634
4 changed files with 16 additions and 0 deletions
+4
View File
@@ -10,6 +10,10 @@ public class FullIcon implements IIcon
private IIcon p;
public FullIcon(IIcon o) {
if ( o == null )
throw new RuntimeException("Cannot create a wrapper icon with a null icon.");
p = o;
}