rantav/hector — Issue #361: NPE in HectorObjectMapper
Author: ash2k
Created: 2011-12-11 11:22:15+00:00
State: open

```
Method meth = md.getPropDesc().getWriteMethod();
if (null == meth) {
logger.debug("@Id annotation found - but can't find setter for property, "
+ md.getPropDesc().getName());
}

meth.invoke(obj, pd.getReadMethod().invoke(pkObj, (Object[]) null));
```

p.s. also you may want to check Hector with findbugs to find such... bugs :)