We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd7d59d commit 4f8b432Copy full SHA for 4f8b432
Scalatron/src/scalatron/Version.scala
@@ -5,5 +5,9 @@ package scalatron
5
6
object Version
7
{
8
- val VersionString = Version.getClass.getPackage.getImplementationVersion
+ val VersionString = {
9
+ // if we are not running from a .jar file (e.g. in debugger from .class files), the resource query may return 'null'
10
+ val versionFromResource = Version.getClass.getPackage.getImplementationVersion
11
+ if(versionFromResource == null) "unknown" else versionFromResource
12
+ }
13
}
0 commit comments