if((quantity1[k].getrestmass() - cold[i].getmass()) > 0
&& (quantity1[k].getrestvolym() - cold[i].getvolym()) > 0)
I want to compare these arguments so that both these numbers are > 0, but I'm getting a null pointer exception.
Exception in thread "main" java.lang.NullPointerException at Main.main(Main.java:88)