Code bị lỗi "NullPointerException: Attempt to invoke virtual method on a null object reference" khi chạy

khi chạy app nó cứ có lúc nó như vậy

java.lang.NullPointerException: Attempt to invoke virtual method 'void com.cjj.CircleProgressBar.setProgress(int)' on a null object reference
khi chạy hàm main trong đó có fragment nhé nhưng nó lại báo lỗi

bị null cái progressbar

1 Like

mình k dùng progressbar ở đâu cả

CircleProgressBar đây thây

1 Like
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?