posta quello che hai fatto. Stai passando null alla decode, ovvio che poi ti da errore