Update ServiceHandler.java

fix never step into this conditional statement