I have this code :
private void submitPstart() { if (tStock.getText().charAt(0)>=\'A\' && tStock.getText().charAt(0)<=\'Z\'){ }else
Add
if (tStockPIStart!=null && tStockPIStart.length>0) { [...] }