Revision 37586
Added by Sandro La Bruzzo about 9 years ago
DownloadServiceFeeder.java | ||
---|---|---|
120 | 120 |
} |
121 | 121 |
|
122 | 122 |
int i = 0; |
123 |
for (final String downloadItem : urlInfo) { |
|
124 |
if (downloadItem != null) { |
|
125 |
if ((i++ % 1000) == 0) { |
|
126 |
log.debug("Read " + i); |
|
123 |
if(urlInfo!= null) { |
|
124 |
for (final String downloadItem : urlInfo) { |
|
125 |
if (downloadItem != null) { |
|
126 |
if ((i++ % 1000) == 0) { |
|
127 |
log.debug("Read " + i); |
|
128 |
} |
|
129 |
try { |
|
130 |
itemsQueue.put(downloadItem); |
|
131 |
} catch (final Exception e) { |
|
132 |
log.error("An error occurred while populating the download items queue: " + Joiner.on("\tat ").join(e.getStackTrace())); |
|
133 |
} |
|
127 | 134 |
} |
128 |
try { |
|
129 |
itemsQueue.put(downloadItem); |
|
130 |
} catch (final Exception e) { |
|
131 |
log.error("An error occurred while populating the download items queue: " + Joiner.on("\tat ").join(e.getStackTrace())); |
|
132 |
} |
|
133 | 135 |
} |
134 | 136 |
} |
135 | 137 |
|
Also available in: Unified diff
fixed bug