idok-commit AT lists.psi.ch
Subject: Commit emails of the iDok project
List archive
- From: "AFS account Roman Geus" <geus AT savannah.psi.ch>
- To: idok-commit AT lists.psi.ch
- Subject: [idok-commit] idok commit r765 - trunk/java/ch/idok/common/impl/repository/svn
- Date: Wed, 27 Feb 2008 14:58:22 +0100
- List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
- List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>
Author: geus
Date: Wed Feb 27 14:58:22 2008
New Revision: 765
Log:
Fixed potential NullPointerException in SvnRepository class
Modified:
trunk/java/ch/idok/common/impl/repository/svn/SvnRepository.java
Modified: trunk/java/ch/idok/common/impl/repository/svn/SvnRepository.java
==============================================================================
--- trunk/java/ch/idok/common/impl/repository/svn/SvnRepository.java
(original)
+++ trunk/java/ch/idok/common/impl/repository/svn/SvnRepository.java Wed
Feb 27 14:58:22 2008
@@ -676,6 +676,7 @@
logger_.finer("Beginning transaction");
operations_ = new ArrayList<TransactionOp>();
out_ = handler_.getSystemOut();
+ editor_ = null;
}
/**
@@ -745,7 +746,8 @@
}
} catch (SVNException e) {
try {
- editor_.abortEdit();
+ if (editor_ != null)
+ editor_.abortEdit();
} catch (SVNException f) {
}
throw new DmsException(ErrorType.REPOSITORY_ACCESS, this,
- [idok-commit] idok commit r765 - trunk/java/ch/idok/common/impl/repository/svn, AFS account Roman Geus, 02/27/2008
Archive powered by MHonArc 2.6.19.