Fix a NPE bug in the socialspy
Added license