 <p>The member function <code>public String[] getCost()</code> returns null and not an actual cost value. Therefore, <code>double[] doubleRunningCosts = new double[RunningCosts.length];</code> at line 31 will fail, because RunningCosts is null.</p>