diff --git a/ethpub/pub.go b/ethpub/pub.go
index 5dc08160f7a8f7326549d7035cd5e903c237d9c7..64109dbfa3a7c8c4fe2385618a32af12a8aa85ef 100644
--- a/ethpub/pub.go
+++ b/ethpub/pub.go
@@ -24,7 +24,15 @@ func (lib *PEthereum) GetBlock(hexHash string) *PBlock {
 
 	block := lib.blockChain.GetBlock(hash)
 
-	return &PBlock{Number: int(block.BlockInfo().Number), Hash: ethutil.Hex(block.Hash())}
+	var blockInfo *PBlock
+
+	if block != nil {
+		blockInfo = &PBlock{Number: int(block.BlockInfo().Number), Hash: ethutil.Hex(block.Hash())}
+	} else {
+		blockInfo = &PBlock{Number: -1, Hash: ""}
+	}
+
+	return blockInfo
 }
 
 func (lib *PEthereum) GetKey() *PKey {