Bug 750

Summary: when running queryOrderByUsername() and addOrder() in order.java, if the rs=null, it falls.
Product: Group 05(2022) Reporter: yiweizhao4 <yiweizhao4-c>
Component: normal class sectionAssignee: yiweizhao4 <yiweizhao4-c>
Status: CONFIRMED ---    
Severity: trivial    
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   

Description yiweizhao4 2022-11-30 19:49:40 HKT
Steps to Reproduce:
In Order.java, run the function queryOrderByUsername() and addOrder(), we can see the return results of executions.

Expected output:
When executing the queryOrderByUsername() and addOrder(), when the result is not null, we will see rsToAl(rs), otherwise it will return null.

Actual output:
We can only get the rsToAl(rs) and when the rs==null, it fails.
Comment 1 yiweizhao4 2022-11-30 19:55:03 HKT
Resolution:	
We should add if conditional sentences if(rs==null) in queryOrderByUsername() and addOrder() to judge whether the result is null.