Do not pass NULL to strchr()
Do not pass NULL to strchr()

get_typed_class() in libxkutil can segfault a provider if refcn
parameter is NULL.  Ensure refcn is non-NULL before subsequent use.

    Signed-off-by: Jim Fehlig <jfehlig@novell.com>

libvirt/libvirt-cim,libvirt/libvirt-cim,libvirt/libvirt-cim