Signed-off-by: Tomek Grabiec <[email protected]>
---
 jit/bc-offset-mapping.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/jit/bc-offset-mapping.c b/jit/bc-offset-mapping.c
index 67b897a..e36e82a 100644
--- a/jit/bc-offset-mapping.c
+++ b/jit/bc-offset-mapping.c
@@ -80,7 +80,8 @@ unsigned long native_ptr_to_bytecode_offset(struct 
compilation_unit *cu,
                                return insn->bytecode_offset;
 
                        if (insn->mach_offset > offset) {
-                               if (prev_insn->mach_offset <= offset)
+                               if (prev_insn &&
+                                   prev_insn->mach_offset <= offset)
                                        return prev_insn->bytecode_offset;
                                break;
                        }
-- 
1.6.0.6


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to