Author: toad
Date: 2006-05-24 21:36:16 +0000 (Wed, 24 May 2006)
New Revision: 8855
Modified:
trunk/freenet/src/freenet/client/Metadata.java
Log:
Fix NPE
Modified: trunk/freenet/src/freenet/client/Metadata.java
===================================================================
--- trunk/freenet/src/freenet/client/Metadata.java 2006-05-24 21:31:36 UTC
(rev 8854)
+++ trunk/freenet/src/freenet/client/Metadata.java 2006-05-24 21:36:16 UTC
(rev 8855)
@@ -509,7 +509,8 @@
documentType = docType;
// Determine MIME type
this.clientMetadata = cm;
- this.setMIMEType(cm.getMIMEType());
+ if(cm != null)
+ this.setMIMEType(cm.getMIMEType());
nameInArchive = arg;
} else
throw new IllegalArgumentException();