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:06:00 UTC

[jira] [Created] (METAMODEL-1218) Can't compare schema's without a name

Gerard Dellemann created METAMODEL-1218:
-------------------------------------------

             Summary: 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


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



--
This message was sent by Atlassian Jira
(v8.3.2#803003)