From 4890710cde5f73ebbc4638bbe2e30ea414ee76e6 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 10 Feb 2003 22:19:03 +0000 Subject: [PATCH] Patch submitted by F. Postma for compiling on HP git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4284 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/java.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Modules/java.cxx b/Source/Modules/java.cxx index b0b124fe0..e65e39978 100644 --- a/Source/Modules/java.cxx +++ b/Source/Modules/java.cxx @@ -661,7 +661,8 @@ class JAVA : public Language { } // Get any Java exception classes in the throw typemap - if (ParmList *throw_parm_list = Getattr(n,"throws")) { + ParmList *throw_parm_list = NULL; + if (throw_parm_list = Getattr(n,"throws")) { Swig_typemap_attach_parms("throws", throw_parm_list, f); for (p = throw_parm_list; p; p=nextSibling(p)) { if ((tm = Getattr(p,"tmap:throws"))) {