[archstudio-commits] svn commit: r7093 - /archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelink/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/XADLFacade.java

archstudio-commits-owner at uci.edu archstudio-commits-owner at uci.edu
Tue May 6 16:27:20 PDT 2008


Author: dpurpura
Date: Tue May  6 16:27:19 2008
New Revision: 7093

Log:
Fixed NullPointerException

Modified:
    archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/XADLFacade.java

Modified: archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tr=
acelink/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/XADLFacade.j=
ava
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/XADLFacade.java (o=
riginal)
+++ archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/XADLFacade.java Tu=
e May  6 16:27:19 2008
@@ -5,10 +5,8 @@
 =

 import edu.uci.isr.xarch.IXArch;
 import edu.uci.isr.xarch.IXArchImplementation;
-import edu.uci.isr.xarch.instance.IInstanceContext;
 import edu.uci.isr.xarch.tracelink.ArchTraceLinksImpl;
 import edu.uci.isr.xarch.tracelink.IArchTraceLinks;
-import edu.uci.isr.xarch.types.ITypesContext;
 import edu.uci.isr.xarchflat.ObjRef;
 import edu.uci.isr.xarchflat.XArchFlatInterface;
 import edu.uci.isr.xarchflat.proxy.XArchFlatProxyUtils;
@@ -21,7 +19,7 @@
  */
 public class XADLFacade {
 	=

-	protected static XArchFlatInterface xArchFlat;
+	protected XArchFlatInterface xArchFlat;
 	=

 	protected ObjRef xArchRef;
 	=

@@ -33,6 +31,10 @@
 	=

 	=

 	public XADLFacade(XArchFlatInterface xArchFlat) {
+		this.xArchFlat =3D xArchFlat;
+		if (xArchFlat =3D=3D null)
+			System.err.println("xArchFlat is null");
+		=

 		xArchImplementation =3D =

 			XArchFlatProxyUtils.getXArchImplementation(xArchFlat);
 		xArch =3D xArchImplementation.createXArch();
@@ -52,8 +54,8 @@
 		return this.xArchRef;
 	}
 	=

-	public static void setXArchFlat(XArchFlatInterface xArchFlat) {
-		XADLFacade.xArchFlat =3D xArchFlat;
+	public void setXArchFlat(XArchFlatInterface xArchFlat) {
+		this.xArchFlat =3D xArchFlat;
 	}
 	=

 	=





More information about the archstudio-commits mailing list