NIFI-7042: This closes #3996.Azure Reporting Tasking throwing NullReferenceException

Signed-off-by: Joe Witt <joewitt@apache.org>
This commit is contained in:
bahlulh 2020-01-17 11:29:51 -08:00 committed by Joe Witt
parent 3ef62dd118
commit f8057d0c2f
No known key found for this signature in database
GPG Key ID: 9093BF854F811A1A
2 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,6 @@ public abstract class AbstractAzureLogAnalyticsReportingTask extends AbstractRep
request.addHeader("Authorization", createAuthorization);
request.addHeader("x-ms-date", nowRfc1123);
request.setEntity(new StringEntity(rawJson));
request.setEntity(new StringEntity(rawJson));
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
postRequest(httpClient, request);
}

View File

@ -62,6 +62,7 @@ public class AzureLogAnalyticsReportingTask extends AbstractAzureLogAnalyticsRep
@Override
protected List<PropertyDescriptor> getSupportedPropertyDescriptors() {
final List<PropertyDescriptor> properties = new ArrayList<>();
properties.add(SEND_JVM_METRICS);
properties.add(LOG_ANALYTICS_WORKSPACE_ID);
properties.add(LOG_ANALYTICS_CUSTOM_LOG_NAME);
properties.add(LOG_ANALYTICS_WORKSPACE_KEY);