- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
Sn1p3t
Don't ask why, but I am in a situation like this:
I have a set of objects in an ArrayList. At certan points in my program, I have to set some of the objects equal to null. Then, at another point in my program, I have to remove all those null items from the ArrayList. Here's a snippet of the code:
I have to have two for loops. One to find all the index values of null values, and the second to remove them (removing from an array you are looping through is a bad idea :D).
The problem is the RemoveAt statement. When I try to RemoveAt an index that is null, I get an ArgumentNull exception.
I don't see any other way around what I'm doing, besides a LOT of complicated math. Am I missing something, or is this impossible?
Link to comment
https://www.neowin.net/forum/topic/249626-net-remove-null-items-from-arraylist/Share on other sites
1 answer to this question
Recommended Posts