Fix NPE
Add example on extension attributes