Github user gss2002 commented on the issue:

    https://github.com/apache/zeppelin/pull/1447
  
    @spektom and @zjffdu is it possible to add a null check also. I've been 
doing some debugging over the past few days and certain situations can cause 
nulls to be returned and in theory if a null is being returned the session is 
dead.
    
    **So instead of this:**
         if (json.matches("^(\")?Session (\'[0-9]\' )?not found(.?\"?)$")) {
               throw new LivyNoSessionException();
    
    **This:**
        boolean clearSession = false;
        if (json != null) {
          if (json.matches("^(\")?Session (\'[0-9]\' )?not found(.?\"?)$")) {
            clearSession = true;
          }
        } else {
          clearSession = true;
        }
        if (clearSession) {
          throw new LivyNoSessionException();
        }


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to