Fix NPE in Rest API Call rule node
This commit is contained in:
		
							parent
							
								
									61723da391
								
							
						
					
					
						commit
						33928d4135
					
				@ -61,4 +61,12 @@ public class TbRestApiCallNodeConfiguration implements NodeConfiguration<TbRestA
 | 
			
		||||
        configuration.setCredentials(new AnonymousCredentials());
 | 
			
		||||
        return configuration;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public ClientCredentials getCredentials() {
 | 
			
		||||
        if (this.credentials == null) {
 | 
			
		||||
            return new AnonymousCredentials();
 | 
			
		||||
        } else {
 | 
			
		||||
            return this.credentials;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user