anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: cloudnetservice/cloudnet-v3
Issue: Exception when creating a permission group

**Describe the bug**<br>
https://pastes.cf/Yr2teTGV24/


**Steps for reproducing**<br>
1. Type "perms create group NAME 0" into the console
2. See the exception from above in every screen


**Expected behavior**<br>
The group should be created (which it it), but without any errors


**Please provide us information about your environment and used assets**

This shouldn't matter, but:
 System specs: CPU = Intel i7 6700k; DDR 4 2400 MHz 16 GB HyperX RAM; 2 TB Seagate HDD
 OS: Windows 10
 Version: https://github.com/CloudNetService/CloudNet-v3/tree/6530b93faf1eca66d0468ead61036d76b38ffec0


Changed files:
cloudnet/src/main/java/de/dytanic/cloudnet/permission/DefaultDatabasePermissionManagement.java

diff --git a/cloudnet/src/main/java/de/dytanic/cloudnet/permission/DefaultDatabasePermissionManagement.java b/cloudnet/src/main/java/de/dytanic/cloudnet/permission/DefaultDatabasePermissionManagement.java
index aa3d73162..f513e6ace 100644
--- a/cloudnet/src/main/java/de/dytanic/cloudnet/permission/DefaultDatabasePermissionManagement.java
+++ b/cloudnet/src/main/java/de/dytanic/cloudnet/permission/DefaultDatabasePermissionManagement.java
@@ -194,11 +194,13 @@ public final class DefaultDatabasePermissionManagement implements IPermissionMan
         Validate.checkNotNull(group);
 
         IPermissionGroup permissionGroup = permissionGroupsMap.remove(group);
-        if (permissionManagementHandler != null) {
-            permissionManagementHandler.handleDeleteGroup(this, permissionGroup);
-        }
+        if (permissionGroup != null) {
+            if (permissionManagementHandler != null) {
+                permissionManagementHandler.handleDeleteGroup(this, permissionGroup);
+            }
 
-        saveGroups();
+            saveGroups();
+        }
     }
 
     @Override
@@ -328,4 +330,4 @@ public final class DefaultDatabasePermissionManagement implements IPermissionMan
     public void setPermissionManagementHandler(IPermissionManagementHandler permissionManagementHandler) {
         this.permissionManagementHandler = permissionManagementHandler;
     }
-}
\\ No newline at end of file
+}
Repository: movingblocks/destinationsol
Issue: Sound Volume Button changes the volume of Music

<!-- Thanks for taking the time to submit a thorough issue report for Destionation Sol! :-)
Please fill out whichever details below seem relevant to your issue.
Note that suggestions, general questions & support should go in the forum:
* http://forum.terasology.org/forum/destination-sol.57/
Bug reports and crashes likely resulting from bugs in the engine go here on GitHub. -->

### What you were trying to do
Tried changing the sound volume using the Options menu
### What actually happened
The Music volume changed instead. Both buttons are hooked up to change music volume only.
### How to reproduce

* Step 1 Open game options from the Main Menu Screen
* Step 2 Try changing Sound Volume
* Step 3 Then try changing Music Volume...see it jump two levels in 1 click.

https://user-images.githubusercontent.com/73862377/154787048-226b52f8-98da-4036-9155-cf0584d44a58.mp4




Changed files:
engine/src/main/java/org/destinationsol/ui/nui/screens/mainMenu/OptionsScreen.java

diff --git a/engine/src/main/java/org/destinationsol/ui/nui/screens/mainMenu/OptionsScreen.java b/engine/src/main/java/org/destinationsol/ui/nui/screens/mainMenu/OptionsScreen.java
index 314cbbd9..4eec6080 100644
--- a/engine/src/main/java/org/destinationsol/ui/nui/screens/mainMenu/OptionsScreen.java
+++ b/engine/src/main/java/org/destinationsol/ui/nui/screens/mainMenu/OptionsScreen.java
@@ -49,7 +49,7 @@ public void initialise() {
         UIButton soundVolumeButton = find("soundVolumeButton", UIButton.class);
         soundVolumeButton.setText("Sound Volume: " + solApplication.getOptions().sfxVolume.getName());
         soundVolumeButton.subscribe(button -> {
-            solApplication.getOptions().advanceMusicVolMul();
+            solApplication.getOptions().advanceSoundVolMul();
             soundVolumeButton.setText("Sound Volume: " + solApplication.getOptions().sfxVolume.getName());
         });
 
@@ -103,6 +103,15 @@ public void initialise() {
         });
     }
 
+    @Override
+    public void onAdded() {
+        UIButton musicVolumeButton = find("musicVolumeButton", UIButton.class);
+        musicVolumeButton.setText("Music Volume: " + solApplication.getOptions().musicVolume.getName());
+
+        UIButton soundVolumeButton = find("soundVolumeButton", UIButton.class);
+        soundVolumeButton.setText("Sound Volume: " + solApplication.getOptions().sfxVolume.getName());
+    }
+
     @Override
     public void update(float delta) {
         super.update(delta);
Repository: movingblocks/destinationsol
Issue: Weapons failing to fire.

### What I was trying to do

I was attempting to fire the Wave Gun in the Federal Tiny vessel.

### What actually happened

The Wave Gun fired, but no shot emerged.

### How to reproduce

* Step 0 (optional)
Back up your save file.
* Step 1
Start a new game. Be sure to pick the "Federal Tiny".
* Step 2
Obtain a Wave Gun by any means. This could mean taking on a Techie turret, or you could just edit your save file directly if you know how.
* Step 3
Equip and attempt to fire the Wave Gun.
* Step 4 (optional)
Obtain another ship. Whether you buy it from a base or by editing your save file is none of my concern.
* Step 5 (optional)
Attempt to fire the Wave Gun again.

### Log details and game version
It will drain energy from the capacitor and the sound effect will play, but no shot will emerge from your front. This is probably because the wave impacts the front end of your ship, and, being the fact that it's your own ship, doesn't do any damage.
Destination Sol 2.0.0, Steam.

### Computer details
Microsoft Windows 10 Notebook, 64-bit OS

[prevShip.ini.txt](https://github.com/MovingBlocks/DestinationSol/files/8011268/prevShip.ini.txt)

My save file has been added, but you will note that I have already upgraded my ship to be a Wasp. I'm afraid that you will have to edit the save to see the bug in action. You are also going to have to rename the file, as github doesn't like to have .ini files attached to an issue.

Changed files:
engine/src/main/java/org/destinationsol/game/projectile/Projectile.java

diff --git a/engine/src/main/java/org/destinationsol/game/projectile/Projectile.java b/engine/src/main/java/org/destinationsol/game/projectile/Projectile.java
index d855798a..4a8bfbd1 100644
--- a/engine/src/main/java/org/destinationsol/game/projectile/Projectile.java
+++ b/engine/src/main/java/org/destinationsol/game/projectile/Projectile.java
@@ -320,6 +320,10 @@ public boolean shouldCollide(SolObject object, Fixture fixture, FactionManager f
                 return shield != null && shield.canAbsorb(config.dmgType);
             }
             return true;
+        } else if (object instanceof Projectile) {
+            // Projectiles from the same sources are allowed to overlap
+            Projectile projectile = (Projectile) object;
+            return projectile.ship != this.ship;
         }
 
         return true;