Skip to content

Commit

Permalink
prevent NPE
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X@76038 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Unico Hommes committed Nov 16, 2004
1 parent b9e670e commit c050552
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -801,7 +801,7 @@ protected boolean processReader(Environment environment)
* Otherwise return <code>null</code>
*/
public SourceValidity getValidityForEventPipeline() {
if (this.cachedResponse != null) {
if (this.cachedResponse != null && this.toCacheSourceValidities != null) {
final AggregatedValidity validity = new AggregatedValidity();
for (int i=0; i < this.toCacheSourceValidities.length; i++) {
validity.add(this.toCacheSourceValidities[i]);
Expand Down

0 comments on commit c050552

Please sign in to comment.