Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-7731

SVN: NullPointerException when updating externals to workspace with format version < 1.6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 3.0 i5, 3.0
    • 2.7.3
    • None

    Description

      UpdateEventHandler throws NPE here:

           if (SVNEventAction.SKIP.equals(action))
              {
                  SVNErrorMessage err = event.getErrorMessage();
      
      
                  if (SVNEventAction.UPDATE_EXTERNAL.equals(event.getExpectedAction()))
                  {
                      if (SVNErrorCode.WC_LOCKED.equals(err.getErrorCode())) // NPE here
                      {
                          log_error("Update of external at '" + file + "' failed because it is locked.");
                          throw new ExternalsLockException(err, file);
                      }
      

      It happens when external definition for file is used but format of working copy is <1.6. I that case SVNKit emits SKIP event without an error message

      Attachments

        Activity

          People

            mark@atlassian.com MarkC
            mgardias Marcin Gardias
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: