updated code on decodeDetails

check for datePartsTemp is null