Created: (HIVEMIND-201) NullPointerException if hivemodule is an empty file

View: New views
2 Messages — Rating Filter:   Alert me  

Created: (HIVEMIND-201) NullPointerException if hivemodule is an empty file

by JIRA hivemind-dev@jakarta.apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

NullPointerException if hivemodule is an empty file
---------------------------------------------------

                 Key: HIVEMIND-201
                 URL: https://issues.apache.org/jira/browse/HIVEMIND-201
             Project: HiveMind
          Issue Type: Bug
    Affects Versions: 1.1.1
            Reporter: Patrick Moore


create an empty file.
have hivemind try to load it as a hivemodule.xml file:

17:54:31,781 ERROR [XmlModuleDescriptorProvider] Error: null
java.lang.NullPointerException
        at org.apache.hivemind.parse.AbstractParser.getLocation(AbstractParser.java:166)
        at org.apache.hivemind.parse.XmlResourceProcessor.processResource(XmlResourceProcessor.java:97)
        at org.apache.hivemind.impl.XmlModuleDescriptorProvider.processResource(XmlModuleDescriptorProvider.java:172)
        at org.apache.hivemind.impl.XmlModuleDescriptorProvider.getModuleDescriptors(XmlModuleDescriptorProvider.java:158)
        at org.apache.hivemind.impl.RegistryBuilder.processModuleDescriptorProvider(RegistryBuilder.java:161)
        at org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:143)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVEMIND-201) NullPointerException if hivemodule is an empty file

by JIRA hivemind-dev@jakarta.apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/HIVEMIND-201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Lindquist updated HIVEMIND-201:
-------------------------------------

    Attachment: hivemind-201.patch

Attached patch fixes the NullPointer.



> NullPointerException if hivemodule is an empty file
> ---------------------------------------------------
>
>                 Key: HIVEMIND-201
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-201
>             Project: HiveMind
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>            Reporter: Patrick Moore
>         Attachments: hivemind-201.patch
>
>
> create an empty file.
> have hivemind try to load it as a hivemodule.xml file:
> 17:54:31,781 ERROR [XmlModuleDescriptorProvider] Error: null
> java.lang.NullPointerException
> at org.apache.hivemind.parse.AbstractParser.getLocation(AbstractParser.java:166)
> at org.apache.hivemind.parse.XmlResourceProcessor.processResource(XmlResourceProcessor.java:97)
> at org.apache.hivemind.impl.XmlModuleDescriptorProvider.processResource(XmlModuleDescriptorProvider.java:172)
> at org.apache.hivemind.impl.XmlModuleDescriptorProvider.getModuleDescriptors(XmlModuleDescriptorProvider.java:158)
> at org.apache.hivemind.impl.RegistryBuilder.processModuleDescriptorProvider(RegistryBuilder.java:161)
> at org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:143)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

LightInTheBox - Buy quality products at wholesale price