File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
ds3-sdk/src/main/java/com/spectralogic/ds3client/utils Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1515
1616allprojects {
1717 group = ' com.spectralogic.ds3'
18- version = ' 3.5.0 '
18+ version = ' 3.5.1 '
1919}
2020
2121subprojects {
Original file line number Diff line number Diff line change 1515
1616package com .spectralogic .ds3client .utils ;
1717
18- import java .io .IOException ;
1918import java .io .InputStream ;
2019import java .util .Properties ;
2120import java .util .concurrent .atomic .AtomicReference ;
@@ -47,13 +46,18 @@ public static String getSdkVersion() {
4746 try (final InputStream propertiesStream = PropertyUtils .class .getClassLoader ().getResourceAsStream (PROPERTIES_FILE_NAME )) {
4847 if (propertiesStream != null ) {
4948 properties .load (propertiesStream );
50- final String versionFromPropFile = properties .get (SDK_VERSION_PROPERTY_NAME ).toString ();
51- if (!Guard .isStringNullOrEmpty (versionFromPropFile )) {
52- versionProperty .set (versionFromPropFile );
49+ final Object versionPropertyObject = properties .get (SDK_VERSION_PROPERTY_NAME );
50+
51+ if (versionPropertyObject != null ) {
52+ final String versionFromPropFile = properties .get (SDK_VERSION_PROPERTY_NAME ).toString ();
53+
54+ if ( ! Guard .isStringNullOrEmpty (versionFromPropFile )) {
55+ versionProperty .set (versionFromPropFile );
56+ }
5357 }
5458 }
55- } catch (final IOException e ) {
56- LOG .warn ("Could not read properties file." , e );
59+ } catch (final Throwable t ) {
60+ LOG .warn ("Could not read properties file." , t );
5761 }
5862
5963 return versionProperty .get ();
You can’t perform that action at this time.
0 commit comments