cpml: protect class data from NULL
commitce8e75569adaddf8e378e13cfb997f74e812e856
authorNicola Fontana <ntd@entidi.it>
Thu, 29 Jan 2015 15:30:09 +0000 (29 16:30 +0100)
committerNicola Fontana <ntd@entidi.it>
Thu, 29 Jan 2015 15:30:09 +0000 (29 16:30 +0100)
tree8609fa472c11e80aef9d8910f9faa510d3efa707
parent750345e8d9e65e3c954dda853e3f52418dbaee1c
cpml: protect class data from NULL

Avoid crashes when passing NULL to virtual method (e.g.,
cpml_primitive_get_length()).
src/cpml/cpml-primitive.c