SDK DocumentationRecipesAnnouncementsSupport Forum
AndroidiOSAnnouncementsSupport Forum
Support Forum

Support Forum

Ask a Question
Back to All

feed code null exception

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?