[
https://issues.apache.org/jira/browse/NIFI-9968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17528968#comment-17528968
]
ASF subversion and git services commented on NIFI-9968:
-------------------------------------------------------
Commit ac2d7d1e54ac729f9e717d9d9e1bb89d02d3276b in nifi's branch
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=ac2d7d1e54 ]
NIFI-9968 Added null check before System.setProperty() in test methods
- Resolves build failures on Java 17 where the original user.timezone property
returns null from System.getProperty()
Signed-off-by: Matthew Burgess <[email protected]>
This closes #6000
> System Timezone NullPointerException on Java 17 Tests
> -----------------------------------------------------
>
> Key: NIFI-9968
> URL: https://issues.apache.org/jira/browse/NIFI-9968
> Project: Apache NiFi
> Issue Type: Bug
> Components: Tools and Build
> Affects Versions: 1.17.0, 1.16.1
> Reporter: David Handermann
> Assignee: David Handermann
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Running a build on Java 17 can fail in {{TestRecordPath}} due to a
> {{NullPointerException}} when calling {{System.setProperty()}} in the
> {{setSystemTimezone()}} method. This can occur when the default return value
> for the {{user.timezone}} System property is {{{}null{}}}.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)