From 20d060c4493c7fab30d70c351a7969788b3ad453 Mon Sep 17 00:00:00 2001 From: Nuno Frade Date: Thu, 26 May 2016 16:43:42 +0200 Subject: [PATCH] Catching no pnode --- lib/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/index.js b/lib/index.js index baec19a..027c4d6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -15,6 +15,10 @@ exports.properties = { }, state (target, state, type, stamp, subs, tree, id, pid) { const pnode = getParent(type, stamp, subs, tree, pid) + if (!pnode) { + console.error('No pnode') + return + } if (!pnode._styleStaticParsed) { props(target, pnode) pnode._styleStaticParsed = true