DRILL-1881 - Test o.a.d.TestBugFixes#testVersionTable fails while building from source tarball
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/store/sys/VersionIterator.java b/exec/java-exec/src/main/java/org/apache/drill/exec/store/sys/VersionIterator.java
index ffc740a..7deb14b 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/store/sys/VersionIterator.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/store/sys/VersionIterator.java
@@ -37,9 +37,9 @@
     public String build_time = "";
 
     public VersionInfo(){
-      URL u = Resources.getResource("git.properties");
-      if(u != null){
-        try {
+      try {
+        URL u = Resources.getResource("git.properties");
+        if(u != null){
           Properties p = new Properties();
           p.load(Resources.newInputStreamSupplier(u).getInput());
           commit_id = p.getProperty("git.commit.id");
@@ -48,11 +48,10 @@
           build_time = p.getProperty("git.build.time");
           commit_message = p.getProperty("git.commit.message.short");
 
-        } catch (IOException e) {
-          logger.warn("Failure while trying to load \"git.properties\" file.", e);
         }
+      } catch (IOException | IllegalArgumentException e) {
+        logger.warn("Failure while trying to load \"git.properties\" file.", e);
       }
-
     }
   }
   @Override