You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2018/11/16 17:21:00 UTC
[jira] [Commented] (SSHD-867) HostConfigEntry.getProperty(String
name, String defaultValue) may return null even if defaultValue != null
[ https://issues.apache.org/jira/browse/SSHD-867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16689686#comment-16689686 ]
Goldstein Lyor commented on SSHD-867:
-------------------------------------
Fixed by [01fc9fec8d9790767b5def1f6aad21922a25ba29|https://github.com/apache/mina-sshd/commit/01fc9fec8d9790767b5def1f6aad21922a25ba29]
> HostConfigEntry.getProperty(String name, String defaultValue) may return null even if defaultValue != null
> ----------------------------------------------------------------------------------------------------------
>
> Key: SSHD-867
> URL: https://issues.apache.org/jira/browse/SSHD-867
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Thomas Wolf
> Assignee: Goldstein Lyor
> Priority: Minor
> Fix For: 2.1.1
>
>
> {{HostConfigEntry.getProperty(String name, String defaultValue)}} contains
> {code:java}
> Map<String, String> props = getProperties();
> if (GenericUtils.isEmpty(props)) {
> return null;
> }{code}
> This should be
> {code:java}
> Map<String, String> props = getProperties();
> if (GenericUtils.isEmpty(props)) {
> return defaultValue;
> }{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)