mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	GUAC-969: Fix possible NPE in reading of local environment.
This commit is contained in:
		| @@ -239,6 +239,12 @@ public class LocalEnvironment implements Environment { | ||||
|                 } | ||||
|             ); | ||||
|  | ||||
|             // Warn if directory contents are not available | ||||
|             if (files == null) { | ||||
|                 logger.error("Unable to read contents of \"{}\".", protocol_directory.getAbsolutePath()); | ||||
|                 files = new File[0]; | ||||
|             } | ||||
|              | ||||
|             // Load each protocol from each file | ||||
|             for (File file : files) { | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user