Skip to content

Commit

Permalink
Merge pull request #397 from TheRealAgentK/dev
Browse files Browse the repository at this point in the history
#390 - Hopefully fixing Gradle build
  • Loading branch information
TheRealAgentK authored Aug 1, 2017
2 parents 99b444b + 4344c7f commit 23c129e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/cflint/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ public class Version {

public static String getVersion() {
try {
return CFLintMain.class.getPackage().getImplementationVersion();
String version = CFLintMain.class.getPackage().getImplementationVersion();
if (version != null) {
return version;
} else {
return "";
}
} catch (Exception e) {
return "";
}
Expand Down

0 comments on commit 23c129e

Please sign in to comment.