chandransalem / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Service document without xmlbase causes NullPointerException #258

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Service document without XML base causes NullPointerException. Service 
documents without xmlbase are allowed by Atom Publishing Protocol (RFC 5023 
2.1.3.).

What steps will reproduce the problem?
1. Create in odata consumer and try read entityset count
   consumer.getEntitySets().count()

What is the expected output? What do you see instead?
Expected output is 2
Result is NullPointerException

What version of the product are you using? On what operating system?
0.7, Windows

Please provide any additional information below.

Example service document:

<?xml version="1.0" encoding="UTF-8"?>
<service xmlns="http://www.w3.org/2007/app"
        xmlns:atom="http://www.w3.org/2005/Atom">
    <workspace>
        <collection href="http://vnote:8080/InfoBaseOdata/odata/infobase.odata/Catalogs_Магазин">
            <atom:title>Catalogs_Shops</atom:title>
        </collection>
        <collection href="http://vnote:8080/InfoBaseOdata/odata/infobase.odata/Catalogs_Регионы">
            <atom:title>Catalogs_Regions</atom:title>
        </collection>
    </workspace>
</service>

Original issue reported on code.google.com by vbkudria...@gmail.com on 4 May 2013 at 8:53

GoogleCodeExporter commented 8 years ago
Should be fixed by r04e7f7ced7d6

Original comment by john.spurlock on 5 May 2013 at 8:50