Opened 4 years ago

#3892 new defect

NULL in hstore breaks store writer

Reported by: ieskok Owned by: brett@…
Priority: minor Milestone:
Component: osmosis Version:
Keywords: Cc:

Description

osmosis(v0.39) breaks reading postgresql snapshot schema if tags(hstore) has keys with value NULL, throws exception:
java.lang.NullPointerException?

at java.io.DataOutputStream?.writeUTF(DataOutputStream?.java:347)
at java.io.DataOutputStream?.writeUTF(DataOutputStream?.java:323)
at org.openstreetmap.osmosis.core.store.DataOutputStoreWriter?.writeString(DataOutputStoreWriter?.java:108)
at org.openstreetmap.osmosis.core.domain.v0_6.Tag.store(Tag.java:60)
at org.openstreetmap.osmosis.core.domain.v0_6.TagCollectionImpl?.store(TagCollectionImpl?.java:70)
at org.openstreetmap.osmosis.core.domain.v0_6.CommonEntityData?.store(CommonEntityData?.java:216)
at org.openstreetmap.osmosis.core.domain.v0_6.Entity.store(Entity.java:138)
at org.openstreetmap.osmosis.core.domain.v0_6.Way.store(Way.java:181)
at org.openstreetmap.osmosis.core.store.BaseObjectWriter?.writeObject(BaseObjectWriter?.java:63).......

Change History (0)

Note: See TracTickets for help on using tickets.