You never initialize dotComsList. The NullPointerException tells you exactly on which line it occurs (DotComBust.java, line 19). Then you look on that line for any dereferencing. In this case, the line is dotComsList.add(one); and only dotComsList is dereferenced. Therefore it must be null.