Commit 33928d41358a12bdeed1a9ac9e338fed63d51bd4

Authored by Igor Kulikov
1 parent 61723da3

Fix NPE in Rest API Call rule node

... ... @@ -61,4 +61,12 @@ public class TbRestApiCallNodeConfiguration implements NodeConfiguration<TbRestA
61 61 configuration.setCredentials(new AnonymousCredentials());
62 62 return configuration;
63 63 }
  64 +
  65 + public ClientCredentials getCredentials() {
  66 + if (this.credentials == null) {
  67 + return new AnonymousCredentials();
  68 + } else {
  69 + return this.credentials;
  70 + }
  71 + }
64 72 }
... ...