Support Forum
feed code null exception
over 5 years ago by Frank ding
taboolaWidget = new TaboolaWidget(MoreActivity.this);
taboolaWidget.getLayoutParams().height = SdkDetailsHelper.getDisplayHeight(MoreActivity.this) * 2;
when i set above code, there is a exception as follow:
Caused by: java.lang.NullPointerException: Attempt to write to field 'int android.view.ViewGroup$LayoutParams.height' on a null object reference
How can i to update code?