You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metamodel.apache.org by "Gerard Dellemann (Jira)" <ji...@apache.org> on 2019/08/28 12:29:00 UTC
[jira] [Updated] (METAMODEL-1218) Can't compare schema's without a
name
[ https://issues.apache.org/jira/browse/METAMODEL-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerard Dellemann updated METAMODEL-1218:
----------------------------------------
Description:
A schema has a name, but it's value can be NULL. When comparing schema's in the AbstractSchema class (#176) the names are used. When the names of either schema is NULL this will result in a NullPointer. I suggest implementing the following compareTo:
https://stackoverflow.com/a/6259488
was:
A schema has a name, but it's value can be NULL. When comparing schema's in the AbstractSchema class (#176) the names are used. When the names are both NULL this will result in a NullPointer. I suggest returning 0 (true) in this case:
https://stackoverflow.com/a/11271611
> Can't compare schema's without a name
> -------------------------------------
>
> Key: METAMODEL-1218
> URL: https://issues.apache.org/jira/browse/METAMODEL-1218
> Project: Apache MetaModel
> Issue Type: Bug
> Affects Versions: 5.2.1
> Reporter: Gerard Dellemann
> Priority: Minor
>
> A schema has a name, but it's value can be NULL. When comparing schema's in the AbstractSchema class (#176) the names are used. When the names of either schema is NULL this will result in a NullPointer. I suggest implementing the following compareTo:
> https://stackoverflow.com/a/6259488
--
This message was sent by Atlassian Jira
(v8.3.2#803003)