Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
It's because you're doing the replace before checking for null (I think). So you need to do the isnull and then replace if false.
row1.TRINAMETX != null ?
row1.TRINAMETX.length()>10 :
/* your code here when row1.TRINAMETX is null */