| 
				
			 | 
			
			
				@@ -93,9 +93,9 @@ public class AgoraManager { 
			 | 
		
	
		
			
			| 
				93
			 | 
			
				93
			 | 
			
			
				         //create rtcEngine instance and setup rtcEngine eventHandler 
			 | 
		
	
		
			
			| 
				94
			 | 
			
				94
			 | 
			
			
				         try { 
			 | 
		
	
		
			
			| 
				95
			 | 
			
				95
			 | 
			
			
				             mRtcEngine = RtcEngine.create(context, options.getString("appid"), mRtcEventHandler); 
			 | 
		
	
		
			
			| 
				96
			 | 
			
				
			 | 
			
			
				-            if (null != options.getString("secret")) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				96
			 | 
			
			
				+            if (options.hasKey("secret") && null != options.getString("secret")) { 
			 | 
		
	
		
			
			| 
				97
			 | 
			
				97
			 | 
			
			
				                 mRtcEngine.setEncryptionSecret(options.getString("secret")); 
			 | 
		
	
		
			
			| 
				98
			 | 
			
				
			 | 
			
			
				-                if (null != options.getString("secretMode")) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				98
			 | 
			
			
				+                if (options.hasKey("secretMode") && null != options.getString("secretMode")) { 
			 | 
		
	
		
			
			| 
				99
			 | 
			
				99
			 | 
			
			
				                     mRtcEngine.setEncryptionMode(options.getString("secretMode")); 
			 | 
		
	
		
			
			| 
				100
			 | 
			
				100
			 | 
			
			
				                 } 
			 | 
		
	
		
			
			| 
				101
			 | 
			
				101
			 | 
			
			
				             } 
			 |