Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hi

 

It would help if you posted your code :-)

 

Look at line 21 of your TWTab.java

getTabIconItemIndex(TWTab.java:21)

 

You are probably using a variable that you've forgotten to initialise.

 

-TGG

Hi

 

TWItems.twsigilshard is null.

Which probably means that either your TWItems.Init is not running for some reason, or you have accidentally overwritten it.

 

I'd suggest you add a couple of breakpoints in your debugger, or alternatively add a few logging statements System.out.println to see what is happening.

 

-TGG

  • Author

Hi

 

TWItems.twsigilshard is null.

Which probably means that either your TWItems.Init is not running for some reason, or you have accidentally overwritten it.

 

I'd suggest you add a couple of breakpoints in your debugger, or alternatively add a few logging statements System.out.println to see what is happening.

 

-TGG

That does seem to be the point because I tried assigning the icon of a vanilla item and it worked.I'll edit the code a bit and see.

Thank you a lot my good sir.

 

Update: The problem was in my Init code as in the TWItems.Enit I intialized the item with Item before making it anew Item that is inaccesable by other classes which kinda makes sense why the twsigilshard was null.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.