Commit 33928d41358a12bdeed1a9ac9e338fed63d51bd4
1 parent
61723da3
Fix NPE in Rest API Call rule node
Showing
1 changed file
with
8 additions
and
0 deletions
@@ -61,4 +61,12 @@ public class TbRestApiCallNodeConfiguration implements NodeConfiguration<TbRestA | @@ -61,4 +61,12 @@ public class TbRestApiCallNodeConfiguration implements NodeConfiguration<TbRestA | ||
61 | configuration.setCredentials(new AnonymousCredentials()); | 61 | configuration.setCredentials(new AnonymousCredentials()); |
62 | return configuration; | 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 | } |