Return-Path: X-Original-To: apmail-mahout-dev-archive@www.apache.org Delivered-To: apmail-mahout-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB6EA1027D for ; Tue, 11 Feb 2014 12:10:27 +0000 (UTC) Received: (qmail 25793 invoked by uid 500); 11 Feb 2014 12:10:21 -0000 Delivered-To: apmail-mahout-dev-archive@mahout.apache.org Received: (qmail 25695 invoked by uid 500); 11 Feb 2014 12:10:20 -0000 Mailing-List: contact dev-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list dev@mahout.apache.org Received: (qmail 25666 invoked by uid 99); 11 Feb 2014 12:10:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Feb 2014 12:10:19 +0000 Date: Tue, 11 Feb 2014 12:10:19 +0000 (UTC) From: "Till Rohrmann (JIRA)" To: dev@mahout.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MAHOUT-1415) Clone method on sparse matrices fails if there is an empty row which has not been set explicitly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAHOUT-1415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Till Rohrmann updated MAHOUT-1415: ---------------------------------- Attachment: MAHOUT-1415.patch > Clone method on sparse matrices fails if there is an empty row which has not been set explicitly > ------------------------------------------------------------------------------------------------ > > Key: MAHOUT-1415 > URL: https://issues.apache.org/jira/browse/MAHOUT-1415 > Project: Mahout > Issue Type: Bug > Components: Math > Affects Versions: 1.0 > Environment: Mac OS X Mavericks, Darwin Kernel Version 13.0.2 > Reporter: Till Rohrmann > Priority: Minor > Labels: newbie > Fix For: 1.0 > > Attachments: MAHOUT-1415.patch > > Original Estimate: 10m > Remaining Estimate: 10m > > The clone method of the SparseMatrix class fails with a NullPointerException if there exists an empty row in the matrix which has not been explicitly set. The reason for this problem is that the clone operation iterates over all rows and clones them whether there exists a Vector instance for this row or not. The problem should be easily fixed by iterating only over the existing matrix slices. -- This message was sent by Atlassian JIRA (v6.1.5#6160)