Last active
October 31, 2018 02:12
-
-
Save mworzala/12d33fb191cce88ec15cd1e26cd2a365 to your computer and use it in GitHub Desktop.
Better Fetch Method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String getNode(String... path) { | |
String token = ""; | |
try { | |
token = configNode.getNode(path).getString(); | |
} catch (NullPointerException e) { | |
e.printStackTrace(); | |
} | |
return token; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment