Skip to content

Commit

Permalink
Fix NPE when posting changes for storage busses (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude authored Feb 24, 2024
1 parent 7ebb2a0 commit 6425ef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/appeng/fluids/parts/PartFluidStorageBus.java
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ public GuiBridge getGuiBridge() {
*/
protected Iterable<IAEFluidStack> filterChanges(Iterable<IAEFluidStack> change) {
var storageFilter = this.getConfigManager().getSetting(Settings.STORAGE_FILTER);
if (storageFilter == StorageFilter.EXTRACTABLE_ONLY) {
if (storageFilter == StorageFilter.EXTRACTABLE_ONLY && handler != null) {
var filteredList = new ArrayList<IAEFluidStack>();
for (final IAEFluidStack stack : change) {
if (this.handler.passesBlackOrWhitelist(stack)) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/appeng/parts/misc/PartStorageBus.java
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ public GuiBridge getGuiBridge() {
*/
protected Iterable<IAEItemStack> filterChanges(Iterable<IAEItemStack> change) {
var storageFilter = this.getConfigManager().getSetting(Settings.STORAGE_FILTER);
if (storageFilter == StorageFilter.EXTRACTABLE_ONLY) {
if (storageFilter == StorageFilter.EXTRACTABLE_ONLY && handler != null) {
var filteredList = new ArrayList<IAEItemStack>();
for (final IAEItemStack stack : change) {
if (this.handler.passesBlackOrWhitelist(stack)) {
Expand Down

0 comments on commit 6425ef6

Please sign in to comment.