Skip to content

Commit

Permalink
resolve bug by get undefined permission from server
Browse files Browse the repository at this point in the history
return now permisson.None and no NULL object
  • Loading branch information
kollia committed Aug 7, 2016
1 parent 4cad274 commit 1e330d6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -524,14 +524,14 @@ public permission permission(String groups, boolean bthrow) throws IOException
res= "OK";
}
if(generateServerError(res) != null)
return null;
Rv= permission.None;

}catch(IOException ex)
{
generateServerError(ex.getMessage());
if(bthrow)
throw ex;
return null;
Rv= permission.None;
}
return Rv;

Expand Down

0 comments on commit 1e330d6

Please sign in to comment.