Share on items which dont have extension got StringIndexOutOfBoundException

Share on items which dont have extension got StringIndexOutOfBoundException