public class CardGameActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
         setContentView(R.layout.view);
    }
}

 

-----------------------------------------------------------------------------------

 

 public CardGameView(Context context) {
  super(context);   
   ........ 소스 ......
   }
 
 public CardGameView(Context context, AttributeSet attrs){
  super(context, attrs);
   
 }

 

--------------------------------------------------------- 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >
   
 <com.android.bu.CardGameView
     android:id="@+id/view"    
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"></com.android.bu.CardGameView>

</LinearLayout>

 

view를 상속받아 layout을 만드는데

xml에서

java.lang.NullPointerException

 

이런 에러가 납니다..

어떤문제가 있을까요...조언부탁드립니다