Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Fixed NPE when netsample network doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
labisso committed Jul 9, 2010
1 parent 06109dc commit 5b7adc5
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -199,11 +199,12 @@ private void writeNetworkFiles(Map<String,Association> associations) {
if (this.netSampleResource != null) {
if (this.netSampleNetwork != null && this.netSampleNetwork.length() != 0) {
final Association assoc = associations.get(this.netSampleNetwork);
final List entries = assoc.getEntries();
if (entries == null || entries.isEmpty()) {

if (assoc == null || assoc.getEntries() == null || assoc.getEntries().isEmpty()) {
logger.warn ("Not writing netsample file because network '" +
this.netSampleNetwork + "' has no entries");
this.netSampleNetwork + "' does not exist or has no entries");
} else {
final List entries = assoc.getEntries();
final File netsampleFile;
try {

Expand Down

0 comments on commit 5b7adc5

Please sign in to comment.