You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/05/09 17:59:00 UTC
[jira] [Commented] (NIFI-9968) System Timezone NullPointerException on Java 17 Tests
[ https://issues.apache.org/jira/browse/NIFI-9968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17533934#comment-17533934 ]
ASF subversion and git services commented on NIFI-9968:
-------------------------------------------------------
Commit f98d7299aabe030e99fee8919e22f4b1f783ca02 in nifi's branch refs/heads/support/nifi-1.16 from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=f98d7299aa ]
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 <ma...@apache.org>
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
> Fix For: 1.17.0, 1.16.2
>
> 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)