Merge "Issue #2721 Fix error when activeSites.txt contains blank lines." into development
Former-commit-id: e665fa251dab6afb16d5a3863aac0815e84a00d4
This commit is contained in:
commit
f3a6acaf48
1 changed files with 17 additions and 13 deletions
|
@ -63,6 +63,7 @@ import com.raytheon.uf.edex.site.SiteActivationMessage.Action;
|
|||
* Nov 1, 2012 15417 ryu Modified getActiveSites to include
|
||||
* home site only if activated.
|
||||
* Dec 11, 2012 14360 ryu No printing stack trace on activation exception
|
||||
* Mar 10, 2014 2721 randerso Fix error when activeSites.txt contains blank lines.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -297,9 +298,12 @@ public class SiteAwareRegistry {
|
|||
in = new BufferedReader(new FileReader(file));
|
||||
String site;
|
||||
while ((site = in.readLine()) != null) {
|
||||
site = site.trim();
|
||||
if (!site.isEmpty()) {
|
||||
activeSites.add(site);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
statusHandler.handle(Priority.PROBLEM,
|
||||
"Error loading active sites", e);
|
||||
|
|
Loading…
Add table
Reference in a new issue