Skip to content

Commit

Permalink
BUGFIX: Fixes NullPointerException in AnalyticJobGeneratorHadoop2 (#294)
Browse files Browse the repository at this point in the history
BUGFIX: Uses Long.parseLong method to fix NullPointerException issue AnalyticJobGeneratorHadoop2
  • Loading branch information
shkhrgpt authored and akshayrai committed Oct 20, 2017
1 parent 12e02a6 commit 9a7049d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void configure(Configuration configuration)
this.configuration = configuration;
String initialFetchWindowString = configuration.get(FETCH_INITIAL_WINDOW_MS);
if (initialFetchWindowString != null) {
long initialFetchWindow = Long.getLong(initialFetchWindowString);
long initialFetchWindow = Long.parseLong(initialFetchWindowString);
_lastTime = System.currentTimeMillis() - FETCH_DELAY - initialFetchWindow;
_fetchStartTime = _lastTime;
}
Expand Down

0 comments on commit 9a7049d

Please sign in to comment.