diff --git a/gnupg.c b/gnupg.c
index fdc82a5..f7a4c27 100644
--- a/gnupg.c
+++ b/gnupg.c
@@ -1391,8 +1391,8 @@ PHP_FUNCTION(gnupg_import){
}
gpgme_data_release(in);
result = gpgme_op_import_result (intern->ctx);
-
- if(result->imports->result != GPG_ERR_NO_ERROR){
+
+ if(!result || !result->imports || result->imports->result != GPG_ERR_NO_ERROR){
RETURN_FALSE;
}
array_init (return_value);
diff --git a/package.xml b/package.xml
index 2b39d09..536e9d5 100644
--- a/package.xml
+++ b/package.xml
@@ -116,10 +116,10 @@ http://pear.php.net/dtd/package-2.0.xsd">
1.3.4
- stable
- stable
+ beta
+ beta
- 2013-XX-XX
+ 2013-12-31
BSD, revised
XXX