File tree 2 files changed +2
-2
lines changed
src/main/java/ubc/pavlab/rdp/services
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public void updateGoTerms() {
96
96
97
97
log .info ( MessageFormat .format ( "Loading GO terms from: {0}." , cacheSettings .getTermFile () ) );
98
98
99
- if ( cacheSettings .getTermFile () == null ) {
99
+ if ( cacheSettings .getTermFile () == null || cacheSettings . getTermFile (). isEmpty () ) {
100
100
log .warn ( "No term file is defined, skipping update of GO terms." );
101
101
return ;
102
102
}
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public Collection<OrganInfo> findByActiveTrueOrderByOrdering() {
52
52
public void updateOrganInfos () {
53
53
try {
54
54
Resource organFile = null ;
55
- if ( applicationSettings .getCache ().getOrganFile () != null ) {
55
+ if ( applicationSettings .getCache ().getOrganFile () != null || applicationSettings . getCache (). getOrganFile (). isEmpty () ) {
56
56
organFile = resourceLoader .getResource ( applicationSettings .getCache ().getOrganFile () );
57
57
}
58
58
if ( organFile == null ) {
You can’t perform that action at this time.
0 commit comments