Put try catch to prevent null array adaptors being created