Java - code always throw NullPointerException : <p>This code throws a NullPointerException.    </p>

<pre><code>protected static Integer cost;
public static int incCost(int value)
{
   cost += value;
};
</code></pre>
