|
From: <ga...@us...> - 2011-12-15 21:22:50
|
Revision: 5880
http://jnode.svn.sourceforge.net/jnode/?rev=5880&view=rev
Author: galatnm
Date: 2011-12-15 21:22:44 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
HFS+ : Add entry assignement to file constructor to avoid NullPointerException.
Modified Paths:
--------------
trunk/fs/src/fs/org/jnode/fs/hfsplus/HfsPlusFile.java
Modified: trunk/fs/src/fs/org/jnode/fs/hfsplus/HfsPlusFile.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/hfsplus/HfsPlusFile.java 2011-12-15 09:58:56 UTC (rev 5879)
+++ trunk/fs/src/fs/org/jnode/fs/hfsplus/HfsPlusFile.java 2011-12-15 21:22:44 UTC (rev 5880)
@@ -17,7 +17,7 @@
* along with this library; If not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-
+
package org.jnode.fs.hfsplus;
import java.io.IOException;
@@ -35,6 +35,7 @@
private CatalogFile file;
public HfsPlusFile(HfsPlusEntry entry) {
+ this.entry = entry;
this.file = new CatalogFile(entry.getData());
}
@@ -70,7 +71,6 @@
}
-
@Override
public boolean isValid() {
return entry.isValid();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|