|  | @@ -263,6 +263,9 @@ public class CaseFrontSheetMainService {
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          sheet = dao.getAPatientMi(bah);
 | 
	
		
			
				|  |  | +        if (null == sheet) {
 | 
	
		
			
				|  |  | +            return null;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          CaseFrontsheetMain sheet1 = inHospital == State.InHospital.YES ?
 | 
	
		
			
				|  |  |                  dao.getZyActPatient("zy_actpatient", "yz_act_order", bah, times) :
 | 
	
		
			
				|  |  |                  dao.getZyActPatient("zy_inactpatient", "yz_inact_order", bah, times);
 |