Hi Guys,
I've got a problem where as I attempt to output, i get thrown a Null Pointer Exception.
I can read the values for orders[0] but nothing after. The DB is intact, and i get thrown the results as per the query generated in my code, so thats not the problem.
Any input would be great,
thanks!!
orders = new orderDetails[numOrders];
//orderID CCF phoneNumber phoneType IMEI simNumber pricePlan MRO orderDate
int i = 0;
while(res.next()){
orders[i] = new orderDetails();
orders[i].setOrderID(res.getInt("orderID"));
orders[i].setCCF( res.getInt("CCF") );
orders[i].setPhoneNum( res.getInt("phoneNumber"));
orders[i].setPhoneType( res.getString("phoneType") );
orders[i].setIMEI( res.getInt("IMEI"));
orders[i].setSimNum( res.getInt("simNumber"));
orders[i].setPlanPrice( res.getDouble("pricePlan"));
orders[i].setMRO( res.getDouble("MRO"));
orders[i].setOrderDate(res.getDate("orderDate"));
i++;
}